Esempio n. 1
0
    private void TakeDamageFromPlayer(object sender, System.EventArgs e)
    {
        WeaponCollisionArgs arg = (WeaponCollisionArgs)e;

        if ((!canAct) || (gameObject == null) || arg.enemyAttackedID != gameObject.GetInstanceID())
        {
            return;
        }

        SpritePushback(this, new PlayerCollisionArgs(arg.direction, arg.pushbackValue));
        TakeDamage(arg.weaponDamage);
    }
Esempio n. 2
0
 public static void StopEnemies(object sender, WeaponCollisionArgs eventArgs)
 {
     OnStopEnemies(sender, eventArgs);
 }
Esempio n. 3
0
 public static void WeaponCollision(object sender, WeaponCollisionArgs eventArgs)
 {
     OnWeaponCollision(sender, eventArgs);
 }