Browse Source

Added Serializable attribute to all variable classes.

master
Christopher 9 years ago
parent
commit
4bf159590c
  1. 1
      Assets/Fungus/Flowchart/Scripts/VariableTypes/AnimatorVariable.cs
  2. 1
      Assets/Fungus/Flowchart/Scripts/VariableTypes/AudioSourceVariable.cs
  3. 1
      Assets/Fungus/Flowchart/Scripts/VariableTypes/BooleanVariable.cs
  4. 1
      Assets/Fungus/Flowchart/Scripts/VariableTypes/ColorVariable.cs
  5. 1
      Assets/Fungus/Flowchart/Scripts/VariableTypes/FloatVariable.cs
  6. 1
      Assets/Fungus/Flowchart/Scripts/VariableTypes/GameObjectVariable.cs
  7. 1
      Assets/Fungus/Flowchart/Scripts/VariableTypes/IntegerVariable.cs
  8. 1
      Assets/Fungus/Flowchart/Scripts/VariableTypes/MaterialVariable.cs
  9. 1
      Assets/Fungus/Flowchart/Scripts/VariableTypes/ObjectVariable.cs
  10. 1
      Assets/Fungus/Flowchart/Scripts/VariableTypes/SpriteVariable.cs
  11. 1
      Assets/Fungus/Flowchart/Scripts/VariableTypes/StringVariable.cs
  12. 1
      Assets/Fungus/Flowchart/Scripts/VariableTypes/TextureVariable.cs
  13. 1
      Assets/Fungus/Flowchart/Scripts/VariableTypes/TransformVariable.cs
  14. 1
      Assets/Fungus/Flowchart/Scripts/VariableTypes/Vector2Variable.cs
  15. 1
      Assets/Fungus/Flowchart/Scripts/VariableTypes/Vector3Variable.cs

1
Assets/Fungus/Flowchart/Scripts/VariableTypes/AnimatorVariable.cs

@ -10,6 +10,7 @@ namespace Fungus
{
[VariableInfo("Other", "Animator")]
[AddComponentMenu("")]
[System.Serializable]
public class AnimatorVariable : VariableBase<Animator>
{}

1
Assets/Fungus/Flowchart/Scripts/VariableTypes/AudioSourceVariable.cs

@ -10,6 +10,7 @@ namespace Fungus
{
[VariableInfo("Other", "AudioSource")]
[AddComponentMenu("")]
[System.Serializable]
public class AudioSourceVariable : VariableBase<AudioSource>
{}

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

@ -12,6 +12,7 @@ namespace Fungus
[VariableInfo("", "Boolean")]
[AddComponentMenu("")]
[System.Serializable]
public class BooleanVariable : VariableBase<bool>
{
public virtual bool Evaluate(CompareOperator compareOperator, bool booleanValue)

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

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

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

@ -10,6 +10,7 @@ namespace Fungus
{
[VariableInfo("", "Float")]
[AddComponentMenu("")]
[System.Serializable]
public class FloatVariable : VariableBase<float>
{
public virtual bool Evaluate(CompareOperator compareOperator, float floatValue)

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

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

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

@ -10,6 +10,7 @@ namespace Fungus
{
[VariableInfo("", "Integer")]
[AddComponentMenu("")]
[System.Serializable]
public class IntegerVariable : VariableBase<int>
{
public virtual bool Evaluate(CompareOperator compareOperator, int integerValue)

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

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

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

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

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

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

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

@ -11,6 +11,7 @@ namespace Fungus
[VariableInfo("", "String")]
[AddComponentMenu("")]
[System.Serializable]
public class StringVariable : VariableBase<string>
{
public virtual bool Evaluate(CompareOperator compareOperator, string stringValue)

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

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

1
Assets/Fungus/Flowchart/Scripts/VariableTypes/TransformVariable.cs

@ -10,6 +10,7 @@ namespace Fungus
{
[VariableInfo("Other", "Transform")]
[AddComponentMenu("")]
[System.Serializable]
public class TransformVariable : VariableBase<Transform>
{}

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

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

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

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

Loading…
Cancel
Save