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