コード例 #1
0
 public void PatrolState()
 {
     if (timeSinceFlip < patrolFlipTime)
     {
         timeSinceFlip += Time.deltaTime;
     }
     else
     {
         Flip();
         timeSinceFlip = 0;
     }
     if (visionCone.InVisionCone())
     {
         anim.SetBool("Chase", true);
     }
 }