void Awake() { GameObject go = GameObject.Find("Scene_Manager"); SM = go.GetComponent <Scene_Manager_Script>(); ScoreFromSM = new int[2] { 0, 0 }; currentPage = 0; }
void Awake() { Screen.SetResolution(1024, 768, true); HighScoreOfEachStage = new int[2] { 0, 0 }; _Stage = 0; eCurrentScene = eSceneState.START; uniqueinstance = this; DontDestroyOnLoad(gameObject);//안사라지게 해줌 }