Пример #1
0
 void Update()
 {
     if (BackpackVariables.BackpackContainsKey(BackpackVariables.Item.Key) && check)
     {
         Invoke("ChangeScene", 2);
         check = false;
     }
 }
Пример #2
0
 void ChangeScene()
 {
     if (BackpackVariables.BackpackContainsKey(BackpackVariables.Item.Key))
     {
         //SceneManager.LoadScene("InsidePlane", LoadSceneMode.Additive);
         flowchart.ExecuteBlock("Back_to_ship");
     }
     else
     {
         check = true;
     }
 }