Browse Source

Fix #71 Hide Fungus commands, event handlers, etc. in Component menu

master
chrisgregan 10 years ago
parent
commit
0803b8b73a
  1. 1
      Assets/Fungus/Animation/Scripts/Commands/ResetAnimTrigger.cs
  2. 1
      Assets/Fungus/Animation/Scripts/Commands/SetAnimBool.cs
  3. 1
      Assets/Fungus/Animation/Scripts/Commands/SetAnimFloat.cs
  4. 1
      Assets/Fungus/Animation/Scripts/Commands/SetAnimInteger.cs
  5. 1
      Assets/Fungus/Animation/Scripts/Commands/SetAnimTrigger.cs
  6. 1
      Assets/Fungus/Audio/Scripts/Commands/PlayMusic.cs
  7. 1
      Assets/Fungus/Audio/Scripts/Commands/PlaySound.cs
  8. 3
      Assets/Fungus/Audio/Scripts/Commands/PlayUsfxrSound.cs
  9. 1
      Assets/Fungus/Audio/Scripts/Commands/SetAudioVolume.cs
  10. 1
      Assets/Fungus/Audio/Scripts/Commands/StopMusic.cs
  11. 1
      Assets/Fungus/Camera/Scripts/Commands/FadeScreen.cs
  12. 1
      Assets/Fungus/Camera/Scripts/Commands/FadeToView.cs
  13. 1
      Assets/Fungus/Camera/Scripts/Commands/MoveToView.cs
  14. 1
      Assets/Fungus/Camera/Scripts/Commands/ShakeCamera.cs
  15. 1
      Assets/Fungus/Camera/Scripts/Commands/StartSwipe.cs
  16. 1
      Assets/Fungus/Camera/Scripts/Commands/StopSwipe.cs
  17. 1
      Assets/Fungus/Dialog/Scripts/Commands/AddOption.cs
  18. 1
      Assets/Fungus/Dialog/Scripts/Commands/Choose.cs
  19. 1
      Assets/Fungus/Dialog/Scripts/Commands/Say.cs
  20. 1
      Assets/Fungus/FungusScript/Scripts/CommandCopyBuffer.cs
  21. 2
      Assets/Fungus/FungusScript/Scripts/Commands/Call.cs
  22. 1
      Assets/Fungus/FungusScript/Scripts/Commands/Comment.cs
  23. 1
      Assets/Fungus/FungusScript/Scripts/Commands/DebugLog.cs
  24. 1
      Assets/Fungus/FungusScript/Scripts/Commands/Destroy.cs
  25. 1
      Assets/Fungus/FungusScript/Scripts/Commands/Else.cs
  26. 1
      Assets/Fungus/FungusScript/Scripts/Commands/EndIf.cs
  27. 1
      Assets/Fungus/FungusScript/Scripts/Commands/If.cs
  28. 1
      Assets/Fungus/FungusScript/Scripts/Commands/LoadGlobals.cs
  29. 1
      Assets/Fungus/FungusScript/Scripts/Commands/LoadScene.cs
  30. 1
      Assets/Fungus/FungusScript/Scripts/Commands/RandomFloat.cs
  31. 1
      Assets/Fungus/FungusScript/Scripts/Commands/RandomInteger.cs
  32. 1
      Assets/Fungus/FungusScript/Scripts/Commands/Reset.cs
  33. 1
      Assets/Fungus/FungusScript/Scripts/Commands/RunScript.cs
  34. 1
      Assets/Fungus/FungusScript/Scripts/Commands/SaveGlobals.cs
  35. 1
      Assets/Fungus/FungusScript/Scripts/Commands/SendMessage.cs
  36. 1
      Assets/Fungus/FungusScript/Scripts/Commands/SetActive.cs
  37. 1
      Assets/Fungus/FungusScript/Scripts/Commands/SetVariable.cs
  38. 1
      Assets/Fungus/FungusScript/Scripts/Commands/Stop.cs
  39. 2
      Assets/Fungus/FungusScript/Scripts/Commands/Wait.cs
  40. 1
      Assets/Fungus/FungusScript/Scripts/EventHandler.cs
  41. 1
      Assets/Fungus/FungusScript/Scripts/EventHandlers/GameStarted.cs
  42. 1
      Assets/Fungus/FungusScript/Scripts/EventHandlers/KeyPressed.cs
  43. 1
      Assets/Fungus/FungusScript/Scripts/EventHandlers/MessageReceived.cs
  44. 1
      Assets/Fungus/FungusScript/Scripts/EventHandlers/ObjectEnabled.cs
  45. 1
      Assets/Fungus/FungusScript/Scripts/FungusState.cs
  46. 1
      Assets/Fungus/FungusScript/Scripts/Node.cs
  47. 1
      Assets/Fungus/FungusScript/Scripts/Sequence.cs
  48. 1
      Assets/Fungus/FungusScript/Scripts/VariableTypes/BooleanVariable.cs
  49. 1
      Assets/Fungus/FungusScript/Scripts/VariableTypes/ColorVariable.cs
  50. 1
      Assets/Fungus/FungusScript/Scripts/VariableTypes/FloatVariable.cs
  51. 1
      Assets/Fungus/FungusScript/Scripts/VariableTypes/GameObjectVariable.cs
  52. 1
      Assets/Fungus/FungusScript/Scripts/VariableTypes/IntegerVariable.cs
  53. 1
      Assets/Fungus/FungusScript/Scripts/VariableTypes/MaterialVariable.cs
  54. 1
      Assets/Fungus/FungusScript/Scripts/VariableTypes/ObjectVariable.cs
  55. 1
      Assets/Fungus/FungusScript/Scripts/VariableTypes/SpriteVariable.cs
  56. 1
      Assets/Fungus/FungusScript/Scripts/VariableTypes/StringVariable.cs
  57. 1
      Assets/Fungus/FungusScript/Scripts/VariableTypes/TextureVariable.cs
  58. 1
      Assets/Fungus/FungusScript/Scripts/VariableTypes/Vector2Variable.cs
  59. 1
      Assets/Fungus/FungusScript/Scripts/VariableTypes/Vector3Variable.cs
  60. 1
      Assets/Fungus/Sprite/Scripts/Commands/FadeSprite.cs
  61. 1
      Assets/Fungus/Sprite/Scripts/Commands/ShowSprite.cs
  62. 1
      Assets/Fungus/Sprite/Scripts/EventHandlers/DragCancelled.cs
  63. 1
      Assets/Fungus/Sprite/Scripts/EventHandlers/DragCompleted.cs
  64. 1
      Assets/Fungus/Sprite/Scripts/EventHandlers/DragEntered.cs
  65. 1
      Assets/Fungus/Sprite/Scripts/EventHandlers/DragExited.cs
  66. 1
      Assets/Fungus/Sprite/Scripts/EventHandlers/DragStarted.cs
  67. 1
      Assets/Fungus/Sprite/Scripts/EventHandlers/ObjectClicked.cs
  68. 2
      Assets/Fungus/Thirdparty/Usfxr/Scripts/SfxrAudioPlayer.cs
  69. 1
      Assets/Fungus/Thirdparty/Usfxr/Scripts/SfxrCacheSurrogate.cs
  70. 1
      Assets/Fungus/Thirdparty/iTween/iTween.cs
  71. 1
      Assets/Fungus/iTween/Scripts/Commands/LookFrom.cs
  72. 1
      Assets/Fungus/iTween/Scripts/Commands/LookTo.cs
  73. 1
      Assets/Fungus/iTween/Scripts/Commands/MoveAdd.cs
  74. 1
      Assets/Fungus/iTween/Scripts/Commands/MoveFrom.cs
  75. 1
      Assets/Fungus/iTween/Scripts/Commands/MoveTo.cs
  76. 1
      Assets/Fungus/iTween/Scripts/Commands/PunchPosition.cs
  77. 1
      Assets/Fungus/iTween/Scripts/Commands/PunchRotation.cs
  78. 1
      Assets/Fungus/iTween/Scripts/Commands/PunchScale.cs
  79. 1
      Assets/Fungus/iTween/Scripts/Commands/RotateAdd.cs
  80. 1
      Assets/Fungus/iTween/Scripts/Commands/RotateFrom.cs
  81. 1
      Assets/Fungus/iTween/Scripts/Commands/RotateTo.cs
  82. 1
      Assets/Fungus/iTween/Scripts/Commands/ScaleAdd.cs
  83. 1
      Assets/Fungus/iTween/Scripts/Commands/ScaleFrom.cs
  84. 1
      Assets/Fungus/iTween/Scripts/Commands/ScaleTo.cs
  85. 1
      Assets/Fungus/iTween/Scripts/Commands/ShakePosition.cs
  86. 1
      Assets/Fungus/iTween/Scripts/Commands/ShakeRotation.cs
  87. 1
      Assets/Fungus/iTween/Scripts/Commands/ShakeScale.cs
  88. 1
      Assets/Fungus/iTween/Scripts/Commands/StopTween.cs
  89. 1
      Assets/Fungus/iTween/Scripts/Commands/StopTweens.cs

1
Assets/Fungus/Animation/Scripts/Commands/ResetAnimTrigger.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("Animation",
"Reset Anim Trigger",
"Resets a trigger parameter on an Animator component.")]
[AddComponentMenu("")]
public class ResetAnimTrigger : Command
{
[Tooltip("Reference to an Animator component in a game object")]

1
Assets/Fungus/Animation/Scripts/Commands/SetAnimBool.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("Animation",
"Set Anim Bool",
"Sets a boolean parameter on an Animator component to control a Unity animation")]
[AddComponentMenu("")]
public class SetAnimBool : Command
{
[Tooltip("Reference to an Animator component in a game object")]

1
Assets/Fungus/Animation/Scripts/Commands/SetAnimFloat.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("Animation",
"Set Anim Float",
"Sets a float parameter on an Animator component to control a Unity animation")]
[AddComponentMenu("")]
public class SetAnimFloat : Command
{
[Tooltip("Reference to an Animator component in a game object")]

1
Assets/Fungus/Animation/Scripts/Commands/SetAnimInteger.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("Animation",
"Set Anim Integer",
"Sets an integer parameter on an Animator component to control a Unity animation")]
[AddComponentMenu("")]
public class SetAnimInteger : Command
{
[Tooltip("Reference to an Animator component in a game object")]

1
Assets/Fungus/Animation/Scripts/Commands/SetAnimTrigger.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("Animation",
"Set Anim Trigger",
"Sets a trigger parameter on an Animator component to control a Unity animation")]
[AddComponentMenu("")]
public class SetAnimTrigger : Command
{
[Tooltip("Reference to an Animator component in a game object")]

1
Assets/Fungus/Audio/Scripts/Commands/PlayMusic.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("Audio",
"Play Music",
"Plays looping game music. If any game music is already playing, it is stopped. Game music will continue playing across scene loads.")]
[AddComponentMenu("")]
public class PlayMusic : Command
{
[Tooltip("Music sound clip to play")]

1
Assets/Fungus/Audio/Scripts/Commands/PlaySound.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("Audio",
"Play Sound",
"Plays a once-off sound effect. Multiple sound effects can be played at the same time.")]
[AddComponentMenu("")]
public class PlaySound : Command
{
[Tooltip("Sound effect clip to play")]

3
Assets/Fungus/Audio/Scripts/Commands/PlayUsfxrSound.cs

@ -5,7 +5,8 @@
[CommandInfo("Audio",
"Play Usfxr Sound",
"Plays a usfxr synth sound. Use the usfxr editor [Window > Generate usfxr Sound Effects] to create the SettingsString. Set a ParentTransform if using positional sound. See https://github.com/zeh/usfxr for more information about usfxr.")]
public class PlayUsfxrSound : Command {
[AddComponentMenu("")]
public class PlayUsfxrSound : Command {
protected SfxrSynth _synth = new SfxrSynth();
public Transform ParentTransform = null;
public String SettingsString = "";

1
Assets/Fungus/Audio/Scripts/Commands/SetAudioVolume.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("Audio",
"Set Audio Volume",
"Sets the global volume level for audio played with Play Music and Play Sound commands.")]
[AddComponentMenu("")]
public class SetAudioVolume : Command
{
[Range(0,1)]

1
Assets/Fungus/Audio/Scripts/Commands/StopMusic.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("Audio",
"Stop Music",
"Stops the currently playing game music.")]
[AddComponentMenu("")]
public class StopMusic : Command
{
public override void OnEnter()

1
Assets/Fungus/Camera/Scripts/Commands/FadeScreen.cs

@ -8,6 +8,7 @@ namespace Fungus
"Fade Screen",
"Draws a fullscreen texture over the scene to give a fade effect. Setting Target Alpha to 1 will obscure the screen, alpha 0 will reveal the screen. " +
"If no Fade Texture is provided then a default flat color texture is used.")]
[AddComponentMenu("")]
public class FadeScreen : Command
{
[Tooltip("Time for fade effect to complete")]

1
Assets/Fungus/Camera/Scripts/Commands/FadeToView.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("Camera",
"Fade To View",
"Fades the camera out and in again at a position specified by a View object. Select [Game Object > Fungus > Camera > View] to create a View object.")]
[AddComponentMenu("")]
public class FadeToView : Command
{
[Tooltip("Time for fade effect to complete")]

1
Assets/Fungus/Camera/Scripts/Commands/MoveToView.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("Camera",
"Move To View",
"Moves the camera to a location specified by a View object. Select [Game Object > Fungus > Camera > View] to create a View object.")]
[AddComponentMenu("")]
public class MoveToView : Command
{
[Tooltip("Time for move effect to complete")]

1
Assets/Fungus/Camera/Scripts/Commands/ShakeCamera.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("Camera",
"Shake Camera",
"Applies a camera shake effect to the main camera.")]
[AddComponentMenu("")]
public class ShakeCamera : Command
{
[Tooltip("Time for camera shake effect to complete")]

1
Assets/Fungus/Camera/Scripts/Commands/StartSwipe.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("Camera",
"Start Swipe",
"Activates swipe panning mode where the player can pan the camera within the area between viewA & viewB.")]
[AddComponentMenu("")]
public class StartSwipe : Command
{
[Tooltip("Defines one extreme of the scrollable area that the player can pan around")]

1
Assets/Fungus/Camera/Scripts/Commands/StopSwipe.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("Camera",
"Stop Swipe",
"Deactivates swipe panning mode.")]
[AddComponentMenu("")]
public class StopSwipe : Command
{
public override void OnEnter()

1
Assets/Fungus/Dialog/Scripts/Commands/AddOption.cs

@ -9,6 +9,7 @@ namespace Fungus
"Add Option",
"Adds an option for the player to select. All previously added options are displayed by the next Choose command. " +
"You can specify another sequence to call and/or a variable to set when the options is selected.")]
[AddComponentMenu("")]
public class AddOption : SetVariable
{
[Tooltip("Option text to display when presenting the option to the player")]

1
Assets/Fungus/Dialog/Scripts/Commands/Choose.cs

@ -10,6 +10,7 @@ namespace Fungus
"Presents a list of options for the player to choose from using a Choose Dialog. " +
"Place Add Option commands before the Choose command to specify the player options. " +
"You can also set a timeout which will cause the following command to execute when the timer runs out.")]
[AddComponentMenu("")]
public class Choose : Command
{
public class Option

1
Assets/Fungus/Dialog/Scripts/Commands/Say.cs

@ -10,6 +10,7 @@ namespace Fungus
"Writes a line of story text to a Say Dialog. " +
"Select [Game Object > Fungus > Dialog > Say Dialog] to create a new Say Dialog in your scene. " +
"Select [Game Object > Fungus > Dialog > Character] to create a new selectable speaking character.")]
[AddComponentMenu("")]
public class Say : Command
{
[Tooltip("Story text to display to the player")]

1
Assets/Fungus/FungusScript/Scripts/CommandCopyBuffer.cs

@ -4,6 +4,7 @@ using System.Collections;
namespace Fungus
{
[AddComponentMenu("")]
public class CommandCopyBuffer : Sequence
{
protected static CommandCopyBuffer instance;

2
Assets/Fungus/FungusScript/Scripts/Commands/Call.cs

@ -4,9 +4,11 @@ using System.Collections.Generic;
namespace Fungus
{
[CommandInfo("Scripting",
"Call",
"Execute another sequence in the same Fungus Script.")]
[AddComponentMenu("")]
public class Call : Command
{
[Tooltip("Sequence to execute")]

1
Assets/Fungus/FungusScript/Scripts/Commands/Comment.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("",
"Comment",
"Use comments to record design notes and reminders about your game.")]
[AddComponentMenu("")]
public class Comment : Command
{
[Tooltip("Text to display for this comment")]

1
Assets/Fungus/FungusScript/Scripts/Commands/DebugLog.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("Scripting",
"Debug Log",
"Writes a log message to the debug console.")]
[AddComponentMenu("")]
public class DebugLog : Command
{
public enum DebugLogType

1
Assets/Fungus/FungusScript/Scripts/Commands/Destroy.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("Scripting",
"Destroy",
"Destroys a specified game object in the scene.")]
[AddComponentMenu("")]
public class Destroy : Command
{
[Tooltip("Reference to game object to destroy")]

1
Assets/Fungus/FungusScript/Scripts/Commands/Else.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("Scripting",
"Else",
"Marks the start of a sequence block to be executed when the preceding If statement is False.")]
[AddComponentMenu("")]
public class Else : Command
{
public override void OnEnter()

1
Assets/Fungus/FungusScript/Scripts/Commands/EndIf.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("Scripting",
"End If",
"Marks the end of an If statement block.")]
[AddComponentMenu("")]
public class EndIf : Command
{
public override void OnEnter()

1
Assets/Fungus/FungusScript/Scripts/Commands/If.cs

@ -17,6 +17,7 @@ namespace Fungus
[CommandInfo("Scripting",
"If",
"If the test expression is true, execute the following block of commands.")]
[AddComponentMenu("")]
public class If : Command
{
[Tooltip("The variable whos value will be checked")]

1
Assets/Fungus/FungusScript/Scripts/Commands/LoadGlobals.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("Scripting",
"Load Globals",
"Loads a set of global variables previously saved using the Save Globals command.")]
[AddComponentMenu("")]
public class LoadGlobals : Command
{
[Tooltip("Save Name of saved global variable values")]

1
Assets/Fungus/FungusScript/Scripts/Commands/LoadScene.cs

@ -10,6 +10,7 @@ namespace Fungus
"for splitting a large game across multiple scene files to reduce peak memory " +
"usage. Previously loaded assets will be released before loading the scene to free up memory." +
"The scene to be loaded must be added to the scene list in Build Settings.")]
[AddComponentMenu("")]
public class LoadScene : Command
{
[Tooltip("Name of the scene to load. The scene must also be added to the build settings.")]

1
Assets/Fungus/FungusScript/Scripts/Commands/RandomFloat.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("Scripting",
"Random Float",
"Sets an float variable to a random value in the defined range.")]
[AddComponentMenu("")]
public class RandomFloat : Command
{
[Tooltip("The variable whos value will be set")]

1
Assets/Fungus/FungusScript/Scripts/Commands/RandomInteger.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("Scripting",
"Random Integer",
"Sets an integer variable to a random value in the defined range.")]
[AddComponentMenu("")]
public class RandomInteger : Command
{
[Tooltip("The variable whos value will be set")]

1
Assets/Fungus/FungusScript/Scripts/Commands/Reset.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("Scripting",
"Reset",
"Resets the state of all commands and local and global variables in the Fungus Script.")]
[AddComponentMenu("")]
public class Reset : Command
{
[Tooltip("Reset state of all commands in the script")]

1
Assets/Fungus/FungusScript/Scripts/Commands/RunScript.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("Scripting",
"Run Script",
"Start executing another Fungus Script.")]
[AddComponentMenu("")]
public class RunScript : Command
{
[Tooltip("Reference to another Fungus Script to execute")]

1
Assets/Fungus/FungusScript/Scripts/Commands/SaveGlobals.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("Scripting",
"Save Globals",
"Saves all current global variables to persistent storage. These can be loaded back in again in future using the LoadGlobals command. This provides a basic save game system.")]
[AddComponentMenu("")]
public class SaveGlobals : Command
{
[Tooltip("Save Name of saved global variable values")]

1
Assets/Fungus/FungusScript/Scripts/Commands/SendMessage.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("Scripting",
"Send Message",
"Sends a message to either the owner Fungus Script or all Fungus Scripts in the scene. Sequences can listen for this message to start execution.")]
[AddComponentMenu("")]
public class SendMessage : Command
{
public enum MessageTarget

1
Assets/Fungus/FungusScript/Scripts/Commands/SetActive.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("Scripting",
"Set Active",
"Sets a game object in the scene to be active / inactive.")]
[AddComponentMenu("")]
public class SetActive : Command
{
[Tooltip("Reference to game object to enable / disable")]

1
Assets/Fungus/FungusScript/Scripts/Commands/SetVariable.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("Scripting",
"Set Variable",
"Sets a Boolean, Integer, Float or String variable to a new value using a simple arithmetic operation. The value can be a constant or reference another variable of the same type.")]
[AddComponentMenu("")]
public class SetVariable : Command
{
public enum SetOperator

1
Assets/Fungus/FungusScript/Scripts/Commands/Stop.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("Scripting",
"Stop",
"Stop executing the current Fungus Script.")]
[AddComponentMenu("")]
public class Stop : Command
{
public override void OnEnter()

2
Assets/Fungus/FungusScript/Scripts/Commands/Wait.cs

@ -7,6 +7,8 @@ namespace Fungus
[CommandInfo("Scripting",
"Wait",
"Waits for period of time before executing the next command in the sequence.")]
[AddComponentMenu("")]
public class Wait : Command
{
[Tooltip("Duration to wait for")]

1
Assets/Fungus/FungusScript/Scripts/EventHandler.cs

@ -30,6 +30,7 @@ namespace Fungus
*/
[RequireComponent(typeof(Sequence))]
[RequireComponent(typeof(FungusScript))]
[AddComponentMenu("")]
public class EventHandler : MonoBehaviour
{
[HideInInspector]

1
Assets/Fungus/FungusScript/Scripts/EventHandlers/GameStarted.cs

@ -8,6 +8,7 @@ namespace Fungus
[EventHandlerInfo("",
"Game Started",
"The sequence will execute when the game starts playing.")]
[AddComponentMenu("")]
public class GameStarted : EventHandler
{
protected virtual void Start()

1
Assets/Fungus/FungusScript/Scripts/EventHandlers/KeyPressed.cs

@ -6,6 +6,7 @@ namespace Fungus
[EventHandlerInfo("Input",
"Key Pressed",
"The sequence will execute when a key press event occurs.")]
[AddComponentMenu("")]
public class KeyPressed : EventHandler
{
public enum KeyPressType

1
Assets/Fungus/FungusScript/Scripts/EventHandlers/MessageReceived.cs

@ -6,6 +6,7 @@ namespace Fungus
[EventHandlerInfo("",
"Message Received",
"The sequence will execute when the specified message is received from a Send Message command.")]
[AddComponentMenu("")]
public class MessageReceived : EventHandler
{
public string message;

1
Assets/Fungus/FungusScript/Scripts/EventHandlers/ObjectEnabled.cs

@ -8,6 +8,7 @@ namespace Fungus
[EventHandlerInfo("",
"Object Enabled",
"The sequence will execute when the Fungus Script game object is enabled.")]
[AddComponentMenu("")]
public class ObjectEnabled : EventHandler
{
protected virtual void OnEnable()

1
Assets/Fungus/FungusScript/Scripts/FungusState.cs

@ -6,6 +6,7 @@ namespace Fungus
// Used by the Fungus Script window to serialize the currently active Fungus Script object
// so that the same Fungus Script can be displayed while editing & playing.
[AddComponentMenu("")]
public class FungusState : MonoBehaviour
{
public FungusScript selectedFungusScript;

1
Assets/Fungus/FungusScript/Scripts/Node.cs

@ -4,6 +4,7 @@ using System.Collections;
namespace Fungus
{
[AddComponentMenu("")]
public class Node : MonoBehaviour
{
public Rect nodeRect = new Rect(0, 0, 120, 30);

1
Assets/Fungus/FungusScript/Scripts/Sequence.cs

@ -7,6 +7,7 @@ namespace Fungus
{
[ExecuteInEditMode]
[RequireComponent(typeof(FungusScript))]
[AddComponentMenu("")]
public class Sequence : Node
{
public string sequenceName = "Sequence";

1
Assets/Fungus/FungusScript/Scripts/VariableTypes/BooleanVariable.cs

@ -6,6 +6,7 @@ namespace Fungus
{
[VariableInfo("", "Boolean")]
[AddComponentMenu("")]
public class BooleanVariable : VariableBase<bool>
{}

1
Assets/Fungus/FungusScript/Scripts/VariableTypes/ColorVariable.cs

@ -4,6 +4,7 @@ using System.Collections;
namespace Fungus
{
[VariableInfo("Other", "Color")]
[AddComponentMenu("")]
public class ColorVariable : VariableBase<Color>
{}

1
Assets/Fungus/FungusScript/Scripts/VariableTypes/FloatVariable.cs

@ -4,6 +4,7 @@ using System.Collections;
namespace Fungus
{
[VariableInfo("", "Float")]
[AddComponentMenu("")]
public class FloatVariable : VariableBase<float>
{}

1
Assets/Fungus/FungusScript/Scripts/VariableTypes/GameObjectVariable.cs

@ -4,6 +4,7 @@ using System.Collections;
namespace Fungus
{
[VariableInfo("Other", "GameObject")]
[AddComponentMenu("")]
public class GameObjectVariable : VariableBase<GameObject>
{}

1
Assets/Fungus/FungusScript/Scripts/VariableTypes/IntegerVariable.cs

@ -4,6 +4,7 @@ using System.Collections;
namespace Fungus
{
[VariableInfo("", "Integer")]
[AddComponentMenu("")]
public class IntegerVariable : VariableBase<int>
{}

1
Assets/Fungus/FungusScript/Scripts/VariableTypes/MaterialVariable.cs

@ -4,6 +4,7 @@ using System.Collections;
namespace Fungus
{
[VariableInfo("Other", "Material")]
[AddComponentMenu("")]
public class MaterialVariable : VariableBase<Material>
{}

1
Assets/Fungus/FungusScript/Scripts/VariableTypes/ObjectVariable.cs

@ -4,6 +4,7 @@ using System.Collections;
namespace Fungus
{
[VariableInfo("Other", "Object")]
[AddComponentMenu("")]
public class ObjectVariable : VariableBase<Object>
{}

1
Assets/Fungus/FungusScript/Scripts/VariableTypes/SpriteVariable.cs

@ -4,6 +4,7 @@ using System.Collections;
namespace Fungus
{
[VariableInfo("Other", "Sprite")]
[AddComponentMenu("")]
public class SpriteVariable : VariableBase<Sprite>
{}

1
Assets/Fungus/FungusScript/Scripts/VariableTypes/StringVariable.cs

@ -5,6 +5,7 @@ namespace Fungus
{
[VariableInfo("", "String")]
[AddComponentMenu("")]
public class StringVariable : VariableBase<string>
{}

1
Assets/Fungus/FungusScript/Scripts/VariableTypes/TextureVariable.cs

@ -4,6 +4,7 @@ using System.Collections;
namespace Fungus
{
[VariableInfo("Other", "Texture")]
[AddComponentMenu("")]
public class TextureVariable : VariableBase<Texture>
{}

1
Assets/Fungus/FungusScript/Scripts/VariableTypes/Vector2Variable.cs

@ -4,6 +4,7 @@ using System.Collections;
namespace Fungus
{
[VariableInfo("Other", "Vector2")]
[AddComponentMenu("")]
public class Vector2Variable : VariableBase<Vector2>
{}

1
Assets/Fungus/FungusScript/Scripts/VariableTypes/Vector3Variable.cs

@ -4,6 +4,7 @@ using System.Collections;
namespace Fungus
{
[VariableInfo("Other", "Vector3")]
[AddComponentMenu("")]
public class Vector3Variable : VariableBase<Vector3>
{}

1
Assets/Fungus/Sprite/Scripts/Commands/FadeSprite.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("Sprite",
"Fade Sprite",
"Fades a sprite to a target color over a period of time.")]
[AddComponentMenu("")]
public class FadeSprite : Command
{
public SpriteRenderer spriteRenderer;

1
Assets/Fungus/Sprite/Scripts/Commands/ShowSprite.cs

@ -7,6 +7,7 @@ namespace Fungus
[CommandInfo("Sprite",
"Show Sprite",
"Makes a sprite visible / invisible by setting the color alpha.")]
[AddComponentMenu("")]
public class ShowSprite : Command
{
public SpriteRenderer spriteRenderer;

1
Assets/Fungus/Sprite/Scripts/EventHandlers/DragCancelled.cs

@ -8,6 +8,7 @@ namespace Fungus
[EventHandlerInfo("Sprites",
"Drag Cancelled",
"The sequence will execute when the player drags an object and releases it without dropping it on a target object.")]
[AddComponentMenu("")]
public class DragCancelled : EventHandler
{
public Draggable2D draggableObject;

1
Assets/Fungus/Sprite/Scripts/EventHandlers/DragCompleted.cs

@ -8,6 +8,7 @@ namespace Fungus
[EventHandlerInfo("Sprites",
"Drag Completed",
"The sequence will execute when the player drags an object and successfully drops it on a target object.")]
[AddComponentMenu("")]
public class DragCompleted : EventHandler
{
public Draggable2D draggableObject;

1
Assets/Fungus/Sprite/Scripts/EventHandlers/DragEntered.cs

@ -9,6 +9,7 @@ namespace Fungus
[EventHandlerInfo("Sprites",
"Drag Entered",
"The sequence will execute when the player is dragging an object which starts touching the target object.")]
[AddComponentMenu("")]
public class DragEntered : EventHandler
{
public Draggable2D draggableObject;

1
Assets/Fungus/Sprite/Scripts/EventHandlers/DragExited.cs

@ -9,6 +9,7 @@ namespace Fungus
[EventHandlerInfo("Sprites",
"Drag Exited",
"The sequence will execute when the player is dragging an object which stops touching the target object.")]
[AddComponentMenu("")]
public class DragExited : EventHandler
{
public Draggable2D draggableObject;

1
Assets/Fungus/Sprite/Scripts/EventHandlers/DragStarted.cs

@ -8,6 +8,7 @@ namespace Fungus
[EventHandlerInfo("Sprites",
"Drag Started",
"The sequence will execute when the player starts dragging an object.")]
[AddComponentMenu("")]
public class DragStarted : EventHandler
{
public Draggable2D draggableObject;

1
Assets/Fungus/Sprite/Scripts/EventHandlers/ObjectClicked.cs

@ -6,6 +6,7 @@ namespace Fungus
[EventHandlerInfo("Sprites",
"Object Clicked",
"The sequence will execute when the user clicks or taps on the clickable object.")]
[AddComponentMenu("")]
public class ObjectClicked : EventHandler
{
public Clickable2D clickableObject;

2
Assets/Fungus/Thirdparty/Usfxr/Scripts/SfxrAudioPlayer.cs vendored

@ -6,6 +6,8 @@ using UnityEngine;
#if UNITY_EDITOR
[ExecuteInEditMode]
#endif
[AddComponentMenu("")]
public class SfxrAudioPlayer : MonoBehaviour {
/**

1
Assets/Fungus/Thirdparty/Usfxr/Scripts/SfxrCacheSurrogate.cs vendored

@ -2,6 +2,7 @@ using System;
using System.Collections;
using UnityEngine;
[AddComponentMenu("")]
public class SfxrCacheSurrogate : MonoBehaviour {
/**

1
Assets/Fungus/Thirdparty/iTween/iTween.cs vendored

@ -49,6 +49,7 @@ namespace Fungus
/// <para>Author: Bob Berkebile (http://pixelplacement.com)</para>
/// <para>Support: http://itween.pixelplacement.com</para>
/// </summary>
[AddComponentMenu("")]
public class iTween : MonoBehaviour{
#region Variables

1
Assets/Fungus/iTween/Scripts/Commands/LookFrom.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("iTween",
"Look From",
"Instantly rotates a GameObject to look at the supplied Vector3 then returns it to it's starting rotation over time.")]
[AddComponentMenu("")]
public class LookFrom : iTweenCommand
{
[Tooltip("Target transform that the GameObject will look at")]

1
Assets/Fungus/iTween/Scripts/Commands/LookTo.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("iTween",
"Look To",
"Rotates a GameObject to look at a supplied Transform or Vector3 over time.")]
[AddComponentMenu("")]
public class LookTo : iTweenCommand
{
[Tooltip("Target transform that the GameObject will look at")]

1
Assets/Fungus/iTween/Scripts/Commands/MoveAdd.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("iTween",
"Move Add",
"Moves a game object by a specified offset over time.")]
[AddComponentMenu("")]
public class MoveAdd : iTweenCommand
{
[Tooltip("A translation offset in space the GameObject will animate to")]

1
Assets/Fungus/iTween/Scripts/Commands/MoveFrom.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("iTween",
"Move From",
"Moves a game object from a specified position back to its starting position over time. The position can be defined by a transform in another object (using To Transform) or by setting an absolute position (using To Position, if To Transform is set to None).")]
[AddComponentMenu("")]
public class MoveFrom : iTweenCommand
{
[Tooltip("Target transform that the GameObject will move from")]

1
Assets/Fungus/iTween/Scripts/Commands/MoveTo.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("iTween",
"Move To",
"Moves a game object to a specified position over time. The position can be defined by a transform in another object (using To Transform) or by setting an absolute position (using To Position, if To Transform is set to None).")]
[AddComponentMenu("")]
public class MoveTo : iTweenCommand
{
[Tooltip("Target transform that the GameObject will move to")]

1
Assets/Fungus/iTween/Scripts/Commands/PunchPosition.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("iTween",
"Punch Position",
"Applies a jolt of force to a GameObject's position and wobbles it back to its initial position.")]
[AddComponentMenu("")]
public class PunchPosition : iTweenCommand
{
[Tooltip("A translation offset in space the GameObject will animate to")]

1
Assets/Fungus/iTween/Scripts/Commands/PunchRotation.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("iTween",
"Punch Rotation",
"Applies a jolt of force to a GameObject's rotation and wobbles it back to its initial rotation.")]
[AddComponentMenu("")]
public class PunchRotation : iTweenCommand
{
[Tooltip("A rotation offset in space the GameObject will animate to")]

1
Assets/Fungus/iTween/Scripts/Commands/PunchScale.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("iTween",
"Punch Scale",
"Applies a jolt of force to a GameObject's scale and wobbles it back to its initial scale.")]
[AddComponentMenu("")]
public class PunchScale : iTweenCommand
{
[Tooltip("A scale offset in space the GameObject will animate to")]

1
Assets/Fungus/iTween/Scripts/Commands/RotateAdd.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("iTween",
"Rotate Add",
"Rotates a game object by the specified angles over time.")]
[AddComponentMenu("")]
public class RotateAdd : iTweenCommand
{
[Tooltip("A rotation offset in space the GameObject will animate to")]

1
Assets/Fungus/iTween/Scripts/Commands/RotateFrom.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("iTween",
"Rotate From",
"Rotates a game object from the specified angles back to its starting orientation over time.")]
[AddComponentMenu("")]
public class RotateFrom : iTweenCommand
{
[Tooltip("Target transform that the GameObject will rotate from")]

1
Assets/Fungus/iTween/Scripts/Commands/RotateTo.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("iTween",
"Rotate To",
"Rotates a game object to the specified angles over time.")]
[AddComponentMenu("")]
public class RotateTo : iTweenCommand
{
[Tooltip("Target transform that the GameObject will rotate to")]

1
Assets/Fungus/iTween/Scripts/Commands/ScaleAdd.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("iTween",
"Scale Add",
"Changes a game object's scale by a specified offset over time.")]
[AddComponentMenu("")]
public class ScaleAdd : iTweenCommand
{
[Tooltip("A scale offset in space the GameObject will animate to")]

1
Assets/Fungus/iTween/Scripts/Commands/ScaleFrom.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("iTween",
"Scale From",
"Changes a game object's scale to the specified value and back to its original scale over time.")]
[AddComponentMenu("")]
public class ScaleFrom : iTweenCommand
{
[Tooltip("Target transform that the GameObject will scale from")]

1
Assets/Fungus/iTween/Scripts/Commands/ScaleTo.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("iTween",
"Scale To",
"Changes a game object's scale to a specified value over time.")]
[AddComponentMenu("")]
public class ScaleTo : iTweenCommand
{
[Tooltip("Target transform that the GameObject will scale to")]

1
Assets/Fungus/iTween/Scripts/Commands/ShakePosition.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("iTween",
"Shake Position",
"Randomly shakes a GameObject's position by a diminishing amount over time.")]
[AddComponentMenu("")]
public class ShakePosition : iTweenCommand
{
[Tooltip("A translation offset in space the GameObject will animate to")]

1
Assets/Fungus/iTween/Scripts/Commands/ShakeRotation.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("iTween",
"Shake Rotation",
"Randomly shakes a GameObject's rotation by a diminishing amount over time.")]
[AddComponentMenu("")]
public class ShakeRotation : iTweenCommand
{
[Tooltip("A rotation offset in space the GameObject will animate to")]

1
Assets/Fungus/iTween/Scripts/Commands/ShakeScale.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("iTween",
"Shake Scale",
"Randomly shakes a GameObject's rotation by a diminishing amount over time.")]
[AddComponentMenu("")]
public class ShakeScale : iTweenCommand
{
[Tooltip("A scale offset in space the GameObject will animate to")]

1
Assets/Fungus/iTween/Scripts/Commands/StopTween.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("iTween",
"Stop Tween",
"Stops an active iTween by name.")]
[AddComponentMenu("")]
public class StopTween : Command
{
[Tooltip("Stop and destroy any Tweens in current scene with the supplied name")]

1
Assets/Fungus/iTween/Scripts/Commands/StopTweens.cs

@ -6,6 +6,7 @@ namespace Fungus
[CommandInfo("iTween",
"Stop Tweens",
"Stop all active iTweens in the current scene.")]
[AddComponentMenu("")]
public class StopTweens : Command
{
public override void OnEnter()

Loading…
Cancel
Save