コード例 #1
0
 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);
 }
コード例 #2
0
 public void SetOwner(MissileOwner inputOwner)
 {
     owner = inputOwner;
 }