Exemple #1
0
 public override void Interact()
 {
     //Debug.Log("sceneName: "+sceneName);
     CheckConditions();
     if (isUsable)
     {
         SceneTransitionHandler.SceneGoto(sceneName, destinationPoint);
     }
     else
     {
         if (barkTrigger != null)
         {
             //Inject the player's transform before it is used
             barkTrigger.barker = SceneTransitionHandler.instance.spawnManager.player.transform;
             //barkTrigger.conversationActor = barkTrigger.barker;
             barkTrigger.gameObject.SetActive(true);
         }
     }
 }
Exemple #2
0
 private void LoadGame()
 {
     UI.Instance.LoadGameData(0);
     //Go to UI Test Room
     SceneTransitionHandler.SceneGoto("UITestScene", SpawnPoints.UITestRoomA);
 }
Exemple #3
0
 private void NewGame()
 {
     SceneTransitionHandler.SceneGoto("UITestScene", SpawnPoints.UITestRoomB);
 }