// Use this for initialization void Start() { scorePoints = 0; comboPoints = 0; healthPoints = maxHealthPoints; comboMultiplier = 1; evolutionPoints = 0; endGame = false; showScore = false; updateHUD = true; disableInputs = false; isEvolving = false; gamePaused = false; lastOrientation = Screen.orientation; social = (RGBSocial)FindObjectOfType(typeof(RGBSocial)); currentShape = firstShape; currentEvoShape = ObjectPool.Instance.GetObjectForType("Evo3", true); }
// Use this for initialization void Start() { // Background // background = UI.firstToolkit.addSprite("background.png", 0, 0); social = (RGBSocial)FindObjectOfType(typeof(RGBSocial)); textManager = new UIText("font", "font.png"); isPaused = false; switch (currentScene) { case Scene.MainMenu: if (runOnce) { createSplashScreen(); runOnce = false; } else { createMainMenuPage(); } break; case Scene.Loading: createLoadingScreen(); break; case Scene.Game: showHUD = true; gameManager = (GameManager)FindObjectOfType(typeof(GameManager)); createGameHUD(); break; } }
// Use this for initialization void Start() { social = (RGBSocial)FindObjectOfType(typeof(RGBSocial)); }