public void OnTriggerEnter(Collider other)
        {
            HealthSystem         health = other.GetComponent <HealthSystem>();
            EnemyBasicController be     = other.GetComponent <EnemyBasicController>();
            BossController       boss   = other.GetComponent <BossController>();

            if (health && be || health && boss)
            {
                health.TakeDamage(damageAmount);
                Destroy(gameObject);
            }


            //Vector3 vToPlayer = (be.transform.position - this.transform.position).normalized;

            //be.LaunchPlayer(vToPlayer * 15);


            SoundEffectBoard.PlayHit();
        }
Example #2
0
 virtual public void OnStart(BossController boss)
 {
     this.boss = boss;
 }