Beispiel #1
0
 IEnumerator myCor()
 {
     if (locked.GetLock(4) == 0)
     {
         achievementNotificationController.ShowNotification(database.achievements[4]);
         locked.Unlock(4);
         locked.Date(4);
         moveSpeed = 0f;
         yield return(new WaitForSeconds(3));
     }
     ded.Dead();
 }
    IEnumerator myCor()
    {
        task.SetActive(false);
        achievementNotificationController.ShowNotification(database.achievements[0]);
        locked.Unlock(0);
        locked.Date(0);
        yield return(new WaitForSeconds(3));

        //task.SetActive(true);

        SceneManager.LoadScene(levelName);
    }
Beispiel #3
0
    IEnumerator myCor()
    {
        int i = 0;

        switch (Name.name)
        {
        case "Cameras":
            i = 1;
            break;

        case "QTE":
            i = 2;
            break;

        case "Painting":
            i = 3;
            break;

        default:
            i = 0;
            break;
        }

        if (locked.GetLock(i) == 0)
        {
            task.SetActive(false);
            achievementNotificationController.ShowNotification(database.achievements[i]);
            locked.Unlock(i);
            locked.Date(i);
        }
        yield return(new WaitForSeconds(3));

        task.SetActive(true);
        if (i == 3)
        {
            end.End();
        }
        if (i == 1)
        {
            TaskText.text = "go upstairs";
        }
    }