public void HitByMissile(MissileOwner owner) { if (isPrime) { if (owner == MissileOwner.Player) { sm.GivePlayerPoints(this.number); } else { sm.GiveComputerPoints(this.number); } } else { this.AddToNeighbors(); } this.RemoveFromNeighbors(); Destroy(gameObject); Destroy(text); }
public void SetOwner(MissileOwner inputOwner) { owner = inputOwner; }