Beispiel #1
0
 public void summon(Ally obj, Vector3 pos)
 {
     if (obj.consumeEnergy <= energySystem.playerEnergy)
     {
         var newObj = Instantiate(obj, new Vector3(pos.x, 5, pos.z), Quaternion.Euler(0, 0, 0));
         FightSystem.fightSystem.AddObj(newObj);
         energySystem.consume(obj.consumeEnergy);
         paraSys.paraShut();
         state = State.IDLE;
     }
 }