// Update is called once per frame void Update() { if (oldAct != newAct) { oldAct = newAct; SetAct(newAct); } }
void SetAct(EAct act) { string actStr = _actions[(int)act]; if (_animtor1 != null) { _animtor1.SetTrigger(actStr); } if (_animtor2 != null) { _animtor2.SetTrigger(actStr); } }