Exemplo n.º 1
0
 void Throw()
 {
     agent.isStopped = true;
     if (throwCount < 100)
     {
         Debug.Log("throw");
         throwCount++;
         Debug.Log("throw throwCount =" + throwCount);
         animator.SetBool("throw", true);
         //lookAt kago
         transform.LookAt(kago.transform);
         //発射
         spawner.EnemyShot(transform);
     }
     else
     {
         animator.SetBool("throw", false);
         throwCount = 0;
         DecideNextState();
     }
 }