Browse Source

Fixed missing .Value on _parameterName property.

master
Christopher 9 years ago
parent
commit
5791e3a451
  1. 4
      Assets/Fungus/Animation/Scripts/Commands/ResetAnimTrigger.cs
  2. 4
      Assets/Fungus/Animation/Scripts/Commands/SetAnimBool.cs

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

@ -27,7 +27,7 @@ namespace Fungus
{ {
if (_animator.Value != null) if (_animator.Value != null)
{ {
_animator.Value.ResetTrigger(_parameterName); _animator.Value.ResetTrigger(_parameterName.Value);
} }
Continue(); Continue();
@ -40,7 +40,7 @@ namespace Fungus
return "Error: No animator selected"; return "Error: No animator selected";
} }
return _animator.Value.name + " (" + _parameterName + ")"; return _animator.Value.name + " (" + _parameterName.Value + ")";
} }
public override Color GetButtonColor() public override Color GetButtonColor()

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

@ -30,7 +30,7 @@ namespace Fungus
{ {
if (_animator.Value != null) if (_animator.Value != null)
{ {
_animator.Value.SetBool(_parameterName, value.Value); _animator.Value.SetBool(_parameterName.Value, value.Value);
} }
Continue(); Continue();
@ -43,7 +43,7 @@ namespace Fungus
return "Error: No animator selected"; return "Error: No animator selected";
} }
return _animator.Value.name + " (" + _parameterName + ")"; return _animator.Value.name + " (" + _parameterName.Value + ")";
} }
public override Color GetButtonColor() public override Color GetButtonColor()

Loading…
Cancel
Save