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() { TutorialDialogueController.dialogueTurn = 0; TutorialDialogueController.isClickable = true; blockController = FindObjectOfType <BlockController>(); diceController = FindObjectOfType <DiceController>(); resetDiceController = FindObjectOfType <ResetDiceController>(); // tutorialGuideCanvas = GameObject.Find(Constants.TUTORIAL.GAME_OBJECT_NAME.TUTORIAL_GUIDE_CANVAS); attackGage = GameObject.Find(Constants.TUTORIAL.GAME_OBJECT_NAME.ATTACK_GAGE); blocks = GameObject.Find(Constants.TUTORIAL.GAME_OBJECT_NAME.BLOCKS); guideItem = GameObject.Find(Constants.TUTORIAL.GAME_OBJECT_NAME.GUIDE_ITEM); turn = GameObject.Find(Constants.TUTORIAL.GAME_OBJECT_NAME.TURN); toast = GameObject.Find(Constants.TUTORIAL.GAME_OBJECT_NAME.TOAST); oval = GameObject.Find(Constants.TUTORIAL.GAME_OBJECT_NAME.OVAL); outline = GameObject.Find(Constants.TUTORIAL.GAME_OBJECT_NAME.OUTLINE); outlineDice = GameObject.Find(Constants.TUTORIAL.GAME_OBJECT_NAME.OUTLINE_DICE); outlineCircle = GameObject.Find(Constants.TUTORIAL.GAME_OBJECT_NAME.OUTLINE_CIRCLE); outlineRect = GameObject.Find(Constants.TUTORIAL.GAME_OBJECT_NAME.OUTLINE_RECT); outlineFullRect = GameObject.Find(Constants.TUTORIAL.GAME_OBJECT_NAME.OUTLINE_FULL_RECT); indicateArrow = GameObject.Find(Constants.TUTORIAL.GAME_OBJECT_NAME.INDICATE_ARROW); ToggleClickEventResetDiceScreen(false); }
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}"); }
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(); }