Exemple #1
0
 /*public void PickupPower(Power Power)
  * {
  *          Debug.Log ("Power.GetType() ->" + Power.GetType ());
  *          if(Power.GetType().Equals(Earth))
  *          {
  *          Earth.PickUp();
  *          Player.AddToPowerList(Power);
  *                  PlayerPowerActions.SetCurrentPower(Power);
  *          }
  *          else if(Power.GetType().Equals(Fire))
  *          {
  *                  Earth.PickUp();
  *                  Player.AddToPowerList(Power);
  *                  PlayerPowerActions.SetCurrentPower(Power);
  *          }
  * }*/
 public void PickUpEarth(Earth Earth)
 {
     //Debug.Log ("PlayerActions PickUpEarth Earth Has:" + Earth.ToString());
     Earth.ActivatePower();
     PlayerPowerActions.SetCurrentPower(Earth);
     Player.AddToPowerList(Earth);
     PlayerPowerActions.DeactivateOtherPowers();
     Earth.PickUp();
 }