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")] [VariableInfo("Other", "Animator")]
[AddComponentMenu("")] [AddComponentMenu("")]
[System.Serializable]
public class AnimatorVariable : VariableBase<Animator> public class AnimatorVariable : VariableBase<Animator>
{} {}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save