Example #1
0
        public void Start()
        {
            gameManager       = GameManager.instance;
            dataManager       = DataManager.instance;
            missionManager    = MissionManager.instance;
            coinGUICollection = CoinGUICollection.instance;

            guiState                 = GUIState.MainMenu;
            inGamePowerUpData        = new CoroutineData();
            gameManager.OnPauseGame += GamePaused;
            lastClickTime            = -clickDelay;

            // hide everything except the main menu
            screenTouch.SetActive(false);
            mainMenuPanel.SetActive(true);
            logoPanel.SetActive(true);
            inGameLeftPanel.SetActive(false);
            inGameTopPanel.SetActive(false);
            inGameRightPanel.SetActive(false);
            if (revivePanel != null)
            {
                revivePanel.SetActive(false);
            }
            endGamePanel.SetActive(false);
            storePanel.SetActive(false);
            statsPanel.SetActive(false);
            missionsPanel.SetActive(false);
            if (inGameMissionsPanel != null)
            {
                inGameMissionsPanel.SetActive(false);
            }
            pausePanel.SetActive(false);
            tutorialPanel.SetActive(false);
        }
Example #2
0
        public void Start()
        {
            infiniteObjectGenerator = InfiniteObjectGenerator.instance;
            guiManager        = GUIManager.instance;
            dataManager       = DataManager.instance;
            audioManager      = AudioManager.instance;
            powerUpManager    = PowerUpManager.instance;
            missionManager    = MissionManager.instance;
            inputController   = InputController.instance;
            cameraController  = CameraController.instance;
            coinGUICollection = CoinGUICollection.instance;

            Application.runInBackground = runInBackground;
            activeCharacter             = -1;
            SpawnCharacter();
            SpawnChaseObject();
        }
 public void Awake()
 {
     instance = this;
 }
Example #4
0
        public void Start()
        {
            infiniteObjectGenerator = InfiniteObjectGenerator.instance;
            guiManager = GUIManager.instance;
            dataManager = DataManager.instance;
            audioManager = AudioManager.instance;
            powerUpManager = PowerUpManager.instance;
            missionManager = MissionManager.instance;
            inputController = InputController.instance;
            cameraController = CameraController.instance;
            coinGUICollection = CoinGUICollection.instance;

            Application.runInBackground = runInBackground;
            activeCharacter = -1;
            SpawnCharacter();
            SpawnChaseObject();
        }
Example #5
0
        public void Start()
        {
            gameManager = GameManager.instance;
            dataManager = DataManager.instance;
            missionManager = MissionManager.instance;
            coinGUICollection = CoinGUICollection.instance;

            guiState = GUIState.MainMenu;
            inGamePowerUpData = new CoroutineData();
            gameManager.OnPauseGame += GamePaused;
            lastClickTime = -clickDelay;

            // hide everything except the main menu
            screenTouch.SetActive(false);
            mainMenuPanel.SetActive(true);
            logoPanel.SetActive(true);
            inGameLeftPanel.SetActive(false);
            inGameTopPanel.SetActive(false);
            inGameRightPanel.SetActive(false);
            if (revivePanel != null)
                revivePanel.SetActive(false);
            endGamePanel.SetActive(false);
            storePanel.SetActive(false);
            statsPanel.SetActive(false);
            missionsPanel.SetActive(false);
            if (inGameMissionsPanel != null)
                inGameMissionsPanel.SetActive(false);
            pausePanel.SetActive(false);
            tutorialPanel.SetActive(false);
        }
 public void Awake()
 {
     instance = this;
 }