private void Start() { current = CurrentLoadedScene.instance; isPauseLoaded = false; isInventoryLoaded = false; isQuestLoaded = false; PotionCount = 3; LoadLevelAdditive("ScreenMenu"); }
private void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } }
private void Start() { if (instance == null) { instance = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } gm = GameManager.Instance; loadedScene = CurrentLoadedScene.instance; }
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); } }
private void Awake() { current = CurrentLoadedScene.instance; }