void Awake() { if (mInstance != null) { throw new UnityException("Error in CGame(). You are not allowed to instantiate it more than once."); } //CGameConstants.HIGH_SCORE =int.Parse( System.IO.File.ReadAllText("score.txt")); mInstance = this; CMouse.init(); CurrentStageData.init(); LevelsInfo.init(); imgBackground = new CSprite(); //Handheld.PlayFullScreenMovie("IntroGame2.mp4", Color.black, FullScreenMovieControlMode.CancelOnInput); setState(new CMenuState()); mSpriteManager = new CSpriteManager(); //setImage("Sprites/Placeholders_Prototype/level_Background"); }
void Awake() { if (mInstance != null) { throw new UnityException("Error in CGame(). You are not allowed to instantiate it more than once."); } mInstance = this; CMouse.init(); CKeyboard.init(); setState(new CLevelState()); }