public static void MissileDestroyed(Missile m) { GameManager inst = Instance(); if (m.GetOwnerID() == inst.player1.getID()) { inst.player1.GiveMissile(); } else if (m.GetOwnerID() == inst.player2.getID()) { inst.player2.GiveMissile(); } }
public override void VisitMissile(Missile m) { if (m.GetOwnerID() != getID()) { m.OnHit(); OnHit(); } }