浏览代码

[Bot] Automated dotnet-format update

/main
Ciro Continisio 4 年前
当前提交
e7bdd126
共有 1 个文件被更改,包括 13 次插入5 次删除
  1. 18
      UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/AnimatorParameterActionSO.cs

18
UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/AnimatorParameterActionSO.cs


public override void OnStateEnter()
{
if(_whenToRun == SpecificMoment.OnStateEnter)
if (_whenToRun == SpecificMoment.OnStateEnter)
SetParameter();
}

{
switch (_parameterType)
{
case AnimatorParameterActionSO.ParameterType.Bool: _animator.SetBool(_parameterHash, _boolValue); break;
case AnimatorParameterActionSO.ParameterType.Int: _animator.SetInteger(_parameterHash, _intValue); break;
case AnimatorParameterActionSO.ParameterType.Float: _animator.SetFloat(_parameterHash, _floatValue); break;
case AnimatorParameterActionSO.ParameterType.Trigger: _animator.SetTrigger(_parameterHash); break;
case AnimatorParameterActionSO.ParameterType.Bool:
_animator.SetBool(_parameterHash, _boolValue);
break;
case AnimatorParameterActionSO.ParameterType.Int:
_animator.SetInteger(_parameterHash, _intValue);
break;
case AnimatorParameterActionSO.ParameterType.Float:
_animator.SetFloat(_parameterHash, _floatValue);
break;
case AnimatorParameterActionSO.ParameterType.Trigger:
_animator.SetTrigger(_parameterHash);
break;
}
}
正在加载...
取消
保存