Пример #1
0
    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();
    }
Пример #2
0
 void Awake()
 {
     GameSceneController = GameSceneController.FindObjectOfType <GameSceneController> ();
 }