Esempio n. 1
0
 private void Start()
 {
     current           = CurrentLoadedScene.instance;
     isPauseLoaded     = false;
     isInventoryLoaded = false;
     isQuestLoaded     = false;
     PotionCount       = 3;
     LoadLevelAdditive("ScreenMenu");
 }
Esempio n. 2
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }
Esempio n. 3
0
 private void Start()
 {
     if (instance == null)
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
     gm          = GameManager.Instance;
     loadedScene = CurrentLoadedScene.instance;
 }
Esempio n. 4
0
 private void Start()
 {
     loadedScene      = CurrentLoadedScene.instance;
     characterRaycast = CharacterRaycast.instance;
     currentstate     = true;
     gm     = GameManager.Instance;
     isdead = characterRaycast.isDeath;
     PanelToDisable[0].SetActive(currentstate);
     PanelToDisable[1].SetActive(currentstate);
     if (loadedScene.sceneEnum == CurrentlyLoadedSceneEnum.Stage1)
     {
         PanelToDisable[2].SetActive(true);
     }
     else
     {
         PanelToDisable[2].SetActive(false);
     }
 }
Esempio n. 5
0
 private void Awake()
 {
     current = CurrentLoadedScene.instance;
 }