void Start()
 {
     DmgTextController.Initialize();
     player       = FindObjectOfType <Player>();
     healthBar    = GetComponent <Slider>();
     playerHealth = maxPlayerHealth;
     levelManager = FindObjectOfType <LevelManager>();
     isDead       = false;
 }
Beispiel #2
0
    void Start()
    {
        if (name == "Champ")
        {
            t = Time.time;
        }
        baseDmg = 70;

        if (name == "TowerShot B" || name == "TowerShot R")
        {
        }
        else
        {
            healthBar = transform.FindChild("EnemyCanvas").FindChild("HealthBack").FindChild("HealthBar").GetComponent <Slider>();
        }
        clickMe      = GetComponent <ClickOnMe>();
        tim          = GameObject.Find("Timer_Spawner");
        anim         = GetComponent <Animator>();
        dodmg        = false;
        playerCenter = transform.FindChild("Center");
        DmgTextController.Initialize();
    }