Exemple #1
0
 public void CreateNpc(int id, int x, int y, int direction, int disToSecond, int maxCount)
 {
     if (CurrentLivingBossNum < maxCount)
     {
         if (maxCount - CurrentLivingNpcNum >= 2)
         {
             Npc.Add(((PVEGame)Game).CreateNormal(id, x + disToSecond, y, direction, 0));
             Npc.Add(((PVEGame)Game).CreateNormal(id, x, y, direction, 0));
         }
         else if (maxCount - CurrentLivingBossNum == 1)
         {
             Npc.Add(((PVEGame)Game).CreateNormal(id, x, y, direction, 0));
         }
     }
 }