void Awake() { LocalizationBase = LocalizationBase.FindObjectOfType <LocalizationBase> (); GameSceneController = GameSceneController.FindObjectOfType <GameSceneController> (); HaterPlateManager = HaterPlateManager.FindObjectOfType <HaterPlateManager> (); HaterAudio = GetComponent <AudioSource>(); HaterSetType(); BusterHater(); if (!IsBoss) { haterCurrentExp = Random.Range(Mathf.FloorToInt(haterMaxExp * 0.15f), Mathf.FloorToInt(haterMaxExp * 0.85f)); haterCurrentHp = Random.Range(Mathf.FloorToInt(haterMaxHp * 0.3f), Mathf.FloorToInt(haterMaxHp * 1f)); } else { SetSelebrity(); } haterExpSlider.maxValue = haterMaxExp; haterHpSlider.maxValue = haterMaxHp; UpdateHaterFraze(); UpdateHaterName(); UpdateText(); }
void Awake() { GameSceneController = GameSceneController.FindObjectOfType <GameSceneController> (); }