Exemplo n.º 1
0
 private void ReturnEnergyStatus()
 {
     foreach (var c in actionObjects)
     {
         if (c is ActionObject)
         {
             ActionObject obj = ((ActionObject)c);
             obj.Use();
             obj.OnChangeEnergyHandler(obj.startConnectEnergy);
         }
     }
 }
Exemplo n.º 2
0
 public void ShockEffect(float time)
 {
     foreach (var c in actionObjects)
     {
         if (c is ActionObject)
         {
             ActionObject obj = ((ActionObject)c);
             obj.Use();
             obj.startConnectEnergy = obj.ConnectEnergy;
             obj.OnChangeEnergyHandler(false);
         }
     }
     Invoke("ReturnEnergyStatus", time);
 }