Exemple #1
0
 public void LoadEventInfo(MobManager mobManager, Storytrack storyTrack, EventInfo info)
 {
     ClearMobs();
     m_st = storyTrack;
     m_info = info;
     foreach(string mobName in m_info.mobs) {
         MobInfo mobInfo = mobManager.GetMobByName(mobName);
         Mob mob = CreateMob(mobInfo, transform.position);
         if(mob == null) continue;
         m_mobs.Add(mob);
     }
     MoveMobsToSpawns();
 }
Exemple #2
0
 public void LoadEventInfo(MobManager mobManager, Storytrack storyTrack, EventInfo info)
 {
     ClearMobs();
     m_st   = storyTrack;
     m_info = info;
     foreach (string mobName in m_info.mobs)
     {
         MobInfo mobInfo = mobManager.GetMobByName(mobName);
         Mob     mob     = CreateMob(mobInfo, transform.position);
         if (mob == null)
         {
             continue;
         }
         m_mobs.Add(mob);
     }
     MoveMobsToSpawns();
 }