Browse Source

Allow multiple CommandInfos to be added to a class

SpawnObject can now also be found under GameObject/Instantiate
master
desktop-maesty/steve 7 years ago
parent
commit
b209d4fcd2
  1. 3
      Assets/Fungus/Scripts/Commands/SpawnObject.cs
  2. 2
      Assets/Fungus/Scripts/Components/Command.cs

3
Assets/Fungus/Scripts/Commands/SpawnObject.cs

@ -12,6 +12,9 @@ namespace Fungus
[CommandInfo("Scripting",
"Spawn Object",
"Spawns a new object based on a reference to a scene or prefab game object.")]
[CommandInfo("GameObject",
"Instantiate",
"Instantiate a game object")]
[AddComponentMenu("")]
[ExecuteInEditMode]
public class SpawnObject : Command

2
Assets/Fungus/Scripts/Components/Command.cs

@ -11,6 +11,8 @@ namespace Fungus
/// <summary>
/// Attribute class for Fungus commands.
/// </summary>
///
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class CommandInfoAttribute : Attribute
{
/// <summary>

Loading…
Cancel
Save