コード例 #1
0
 public void TurnOnShield() // turn shield on
 {
     if (!shield.GetIsOn())
     {
         Debug.Log("Shield turned on");
         shield.SetIsOn(true);
         sView.UpdateShieldStatus(shield.GetIsOn());
     }
     else
     {
         Debug.Log("Shield already on!");
     }
 }