public void Initialize() { if (newHeartController == null) { newHeartController = FindObjectOfType <NewHeartController>(); } if (uiController == null) { uiController = FindObjectOfType <UIController>(); } if (noDiceNoCoinController == null) { noDiceNoCoinController = FindObjectOfType <NoDiceNoCoinController>(); } if (resetDiceController == null) { resetDiceController = FindObjectOfType <ResetDiceController>(); } if (mapController == null) { mapController = FindObjectOfType <MapController>(); } if (levelLoader == null) { levelLoader = FindObjectOfType <LevelLoader>(); } }
private void Initialize() { levelLoader = FindObjectOfType <LevelLoader>(); newHeartController = FindObjectOfType <NewHeartController>(); stageIntro = GameObject.Find("Stage Intro"); stageTextObject = GameObject.Find("Stage Number"); }
private void Initialize() { newHeartController = FindObjectOfType <NewHeartController>(); diamondController = FindObjectOfType <DiamondController>(); afterPurchaseEffectController = FindObjectOfType <AfterPurchaseEffectController>(); heartShopController = FindObjectOfType <HeartShopController>(); UIController = FindObjectOfType <UIController>(); }
private void Initialize() { newHeartController = FindObjectOfType <NewHeartController>(); UIAlignController = FindObjectOfType <UIAlignController>(); mainCanvas = GameObject.Find("Main Canvas"); currentSceneIndex = SceneManager.GetActiveScene().buildIndex; currentSceneName = SceneManager.GetActiveScene().name; currentLevelNumber = PlayerPrefs.GetInt("currentLevelNumber"); }
private void Initialize() { levelLoader = FindObjectOfType <LevelLoader>(); newHeartController = FindObjectOfType <NewHeartController>(); diamondController = FindObjectOfType <DiamondController>(); itemController = FindObjectOfType <ItemController>(); afterPurchaseEffectController = FindObjectOfType <AfterPurchaseEffectController>(); resetDiceController = FindObjectOfType <ResetDiceController>(); productController = FindObjectOfType <ProductController>(); currentLevelNumber = levelLoader.GetCurrentLevelNumber(); savedLevelStarCount = PlayerPrefs.GetInt($"LevelStar {currentLevelNumber}"); levelCleared = PlayerPrefs.GetInt($"Level {currentLevelNumber}"); }
private void Initialize() { levelLoader = FindObjectOfType <LevelLoader>(); UIController = FindObjectOfType <UIController>(); iAPManager = FindObjectOfType <IAPManager>(); newHeartController = FindObjectOfType <NewHeartController>(); diamondController = FindObjectOfType <DiamondController>(); diamondShopController = FindObjectOfType <DiamondShopController>(); afterPurchaseEffectController = FindObjectOfType <AfterPurchaseEffectController>(); popupController = FindObjectOfType <PopupController>(); heartShopSiblingIndex = transform.GetSiblingIndex(); Debug.Log(heartShopSiblingIndex + ":heartShopSiblingIndex"); }
void Awake() { if (levelLoader == null) { levelLoader = FindObjectOfType <LevelLoader>(); } if (diceController == null) { diceController = FindObjectOfType <DiceController>(); } if (blockController == null) { blockController = FindObjectOfType <BlockController>(); } if (itemController == null) { itemController = FindObjectOfType <ItemController>(); } if (noDiceNoCoinController == null) { noDiceNoCoinController = FindObjectOfType <NoDiceNoCoinController>(); } if (speicalBlockController == null) { speicalBlockController = FindObjectOfType <SpeicalBlockController>(); } if (statisticsController == null) { statisticsController = FindObjectOfType <StatisticsController>(); } if (resetDiceController == null) { resetDiceController = FindObjectOfType <ResetDiceController>(); } if (uiController == null) { uiController = FindObjectOfType <UIController>(); } if (heartShopController == null) { heartShopController = FindObjectOfType <HeartShopController>(); } if (itemShopController == null) { itemShopController = FindObjectOfType <ItemShopController>(); } if (diamondShopController == null) { diamondShopController = FindObjectOfType <DiamondShopController>(); } if (startController == null) { startController = FindObjectOfType <StartController>(); } if (newHeartController == null) { newHeartController = FindObjectOfType <NewHeartController>(); } if (diamondController == null) { diamondController = FindObjectOfType <DiamondController>(); } if (iAPManager == null) { iAPManager = FindObjectOfType <IAPManager>(); } if (rewardController == null) { rewardController = FindObjectOfType <RewardController>(); } if (this.name != Constants.GAME_OBJECT_NAME.STAGE.CLONED_BLOCK) { cameraShakersForPlate = FindObjectsOfType <CameraShaker>(); } _initialize(); }
private void Initialize() { levelLoader = FindObjectOfType <LevelLoader>(); newHeartController = FindObjectOfType <NewHeartController>(); UIController = FindObjectOfType <UIController>(); }