Beispiel #1
0
 public void CheckIfOnSlot(EnergyUISlot energySlot)
 {
     if (m_EnergyManager.GetNumberEnergyOfType(energySlot.EnergyType) > 0 && m_SelectedSlot != null)
     {
         RemoveSelectedSlotEnergy();
         m_SelectedSlot.AddEnergyToSlot((GameObject)Instantiate(Resources.Load(string.Format(GameConstants.STATIC_ENERGY_PREFAB_PATH, energySlot.EnergyType.ToString()))), energySlot.EnergyType);
         m_EnergyManager.RemoveEnergy(energySlot.EnergyType);
     }
 }