コード例 #1
0
    void Unlock()
    {
        car.GetComponent <CarV2>().MoveToPrevPos();
        GameObject obj = Level.GetGameplayBtn();

        obj.SetActive(true);

        mission.TaskComplete(param[Settings.difficult] / 3);
    }
コード例 #2
0
ファイル: Attractions.cs プロジェクト: Dioneya/Kids-Car-Game
    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();
    }