Exemplo n.º 1
0
 public void Patrol()
 {
     activePS.Stop(true);
     inactivePS.Play(true);
     status = AlertTriggerStatus.Patrol;
     waypointMover.enabled       = false;
     waypointMover.loopingType   = WaypointMover.LoopType.Cycled;
     waypointMover.movementSpeed = patrolMovenmentSpeed;
     wayPointsHolder.waypoints   = patrolWayPoints;
     waypointMover.enabled       = true;
 }
Exemplo n.º 2
0
 public void Alert()
 {
     this.gameObject.GetComponentInChildren <AudioSource>().Play();
     status = AlertTriggerStatus.Alert;
     activePS.Play(true);
     inactivePS.Stop(true);
     waypointMover.enabled       = false;
     waypointMover.loopingType   = WaypointMover.LoopType.Once;
     waypointMover.movementSpeed = 0;
     wayPointsHolder.waypoints   = new List <Waypoint> {
         characterWayPoint
     };
     //leavePosWayPoint.transform.position = waypointMover.transform.position;
     waypointMover.enabled = true;
     StartCoroutine(Prepare());
     StartCoroutine(Miss());
 }