Esempio n. 1
0
        public override void OnOverlap(PlayerMovement pm)
        {
            HealthSystem health = pm.GetComponent <HealthSystem>();

            if (health)
            {
                health.TakeDamage(damageAmount);
            }



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

            pm.LaunchPlayer(vToPlayer * 20);
        }
Esempio n. 2
0
 public void PlayerHit(PlayerMovement pm)
 {
     pm.LaunchPlayer(new Vector3(0, 30, 0));
 }
Esempio n. 3
0
 public override void OnOverlap(PlayerMovement pm)
 {
     pm.LaunchPlayer(new Vector3(0, 30, 0));
 }