void Unlock() { car.GetComponent <CarV2>().MoveToPrevPos(); GameObject obj = Level.GetGameplayBtn(); obj.SetActive(true); mission.TaskComplete(param[Settings.difficult] / 3); }
IEnumerator WaitForEndPhoto() { yield return(new WaitForSeconds(6f)); playerAnim.Play("Walk"); tourist.GetComponent <Character>().GoTo(car.transform.position); yield return(new WaitWhile(() => tourist.GetComponent <Character>().isMoving)); tourist.SetActive(false); rider.SetActive(true); LevelManager.isMoved = true; music.TurnOffInteractMusic(); Unlock(); mission.TaskComplete(); }