override public void OnStateEnter(Animator fsm, AnimatorStateInfo stateInfo, int layerIndex) { dragon = fsm.gameObject.transform.parent.GetComponent <DragonLogic>(); if (dragon != null) { dragon.NewLocation(goToLocation); } }
override public void OnStateEnter(Animator fsm, AnimatorStateInfo stateInfo, int layerIndex) { dragon = fsm.gameObject.transform.parent.GetComponent <DragonLogic>(); if (dragon != null) { dragon.NewLocation(goToLocation); } }