From 8bb99e183032bf6758072ae887cf0848e37aed42 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Thu, 19 Feb 2015 16:41:44 +0000 Subject: [PATCH] Added commenter name to Comment command #84 --- Assets/Fungus/FungusScript/Scripts/Commands/Comment.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Assets/Fungus/FungusScript/Scripts/Commands/Comment.cs b/Assets/Fungus/FungusScript/Scripts/Commands/Comment.cs index c279a4f6..bbde5d1e 100644 --- a/Assets/Fungus/FungusScript/Scripts/Commands/Comment.cs +++ b/Assets/Fungus/FungusScript/Scripts/Commands/Comment.cs @@ -10,6 +10,9 @@ namespace Fungus [AddComponentMenu("")] public class Comment : Command { + [Tooltip("Name of Commenter")] + public string commenterName = ""; + [Tooltip("Text to display for this comment")] [TextArea(2,4)] public string commentText = ""; @@ -21,6 +24,10 @@ namespace Fungus public override string GetSummary() { + if (commenterName != "") + { + return commenterName + ": " + commentText; + } return commentText; }