Exemplo n.º 1
0
 override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     behavior = animator.gameObject.GetComponent <MonsterBehavior>();
     Debug.Log(behavior.spawn);
     behavior.setMovement("waypoint");
     Debug.Log("picking");
     behavior.nextPoint();
 }