override public void OnStateMachineEnter(Animator animator, int stateMachinePathHash) { int newParam = Random.Range(1, Range + 1); MAnimal animal = animator.GetComponent <MAnimal>(); animal.SetIntID(newParam); }
override public void OnStateMachineEnter(Animator animator, int stateMachinePathHash) { int newParam = Random.Range(1, Range + 1); MAnimal animal = animator.GetComponent <MAnimal>(); animal.SetIntID(newParam); }