Пример #1
0
 public virtual void spawnUnit(Unit u)
 {
     if (u != null)
     {
         u.constrUnit(Skript.getBattle(), getCurrentLane());
     }
     else
     {
         Printer.justPrint(Printer.attackLog, "Error: Unit = null");
     }
 }
Пример #2
0
 // public override void spawnUnit(Unit un) {
 //     if(un != null) {
 //         un.constrUnit(Skript.getBattle(), getCurrentLane());
 //     } else {
 //         Printer.justPrint("Error: Unit = null");
 //     }
 // }
 public bool spawnEnemy(Unit u)
 {
     ((Botplayer)Skript.getBattle().getPlayer(false)).receiveOrder(u);
     if (u != null)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }