示例#1
0
 protected override void function(PlayerController player)
 {
     if (player.gameObject.GetComponent <PlayerUp>() != null)
     {
         for (int i = 0; i < EnergyNum; i++)
         {
             if (add)
             {
                 GameSystem.EnergyUp();
             }
             else
             {
                 GameSystem.EnergyDown();
             }
         }
         Boom();
         Destroy(this);
     }
 }
示例#2
0
 public void SubEnergy()
 {
     GameSystem.EnergyDown();
 }