Browse Source

Added Note command

master
chrisgregan 10 years ago
parent
commit
1e587f7dd1
  1. BIN
      Assets/Example/Scenes/Example.unity
  2. 31
      Assets/Fungus/FungusScript/Commands/Comment.cs
  3. 8
      Assets/Fungus/FungusScript/Commands/Comment.cs.meta

BIN
Assets/Example/Scenes/Example.unity

Binary file not shown.

31
Assets/Fungus/FungusScript/Commands/Comment.cs

@ -0,0 +1,31 @@
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace Fungus
{
[CommandInfo("Scripting",
"Note",
"Records design notes and reminders about your script.")]
public class Comment : Command
{
[TextArea(2,4)]
public string commentText = "";
public override void OnEnter()
{
Continue();
}
public override string GetSummary()
{
return commentText;
}
public override Color GetButtonColor()
{
return new Color32(220, 220, 220, 255);
}
}
}

8
Assets/Fungus/FungusScript/Commands/Comment.cs.meta

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 69d14ccff3ce441ecba28c9a53b98a08
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
Loading…
Cancel
Save