예제 #1
0
 protected override void ExitAction()
 {
     if (AIComponent == null)
     {
         AIComponent = GetComponent <BaseAIComponent>() as BaseAIComponent;
     }
     AIComponent.UpdateState(true, finishedState);
 }
예제 #2
0
 protected override void ExitAction()
 {
     nextState = GameManagerScript.Instance.Random.Next(1, 3);
     if (transform.position.x - EvaMovement.Instance.transform.position.x > 0)
     {
         transform.rotation = new Quaternion(0f, 0f, 0f, 0f);
     }
     else
     {
         transform.rotation = new Quaternion(0f, 180f, 0f, 0f);
     }
     if (AIComponent == null)
     {
         AIComponent = GetComponent <BaseAIComponent>() as BaseAIComponent;
     }
     AIComponent.UpdateState(true, finishedState);
 }