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