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; }