Ejemplo n.º 1
0
 public void Play(Vector3 waypoint, FinishRunState state)
 {
     if (coroutine == null)
     {
         this.state    = state;
         this.waypoint = waypoint;
         coroutine     = StartCoroutine(MoveToWaypoint());
     }
 }
Ejemplo n.º 2
0
    public void Play(FinishRunState state)
    {
        if (coroutine == null)
        {
            activeCameraWaypoints = new List <CameraWaypoint>(cameraWaypoints);
            this.state            = state;
            cam.GetComponent <CameraFollowTarget>().enabled = false;

            coroutine = StartCoroutine(MoveCamera());
        }
    }