Пример #1
0
        private void OnTriggerEnter(Collider other)
        {
            BossStates boss = other.GetComponent <BossStates>();

            if (boss)
            {
                HealthSystem bossHealth = boss.GetComponent <HealthSystem>();
                if (bossHealth && canTakeDamage)
                {
                    bossHealth.Damage(50);
                }
            }
        }
Пример #2
0
 /// <summary>
 /// Reference the override onstart
 /// </summary>
 /// <param name="boss"></param>
 virtual public void OnStart(BossStates boss)
 {
     this.boss = boss;
 }