Files
2024-11-20 15:21:28 +01:00

31 lines
599 B
C#

// (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.
using System;
namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.Debug)]
[Tooltip("Adds a text area to the action list. NOTE: Doesn't do anything, just for notes...")]
public class Comment : FsmStateAction
{
[UIHint(UIHint.Comment)]
public string comment;
public override void Reset()
{
comment = "";
}
public override void OnEnter()
{
Finish();
}
#if UNITY_EDITOR
public override string AutoName()
{
return ": " + comment.Replace("\n"," ");
}
#endif
}
}