Пример #1
0
 private static void RemoveMagnet(AggroMagnet magnet) {
     AggroChaser.RemoveMagnetAggro(magnet.transform);
     if (!Magnets.Contains(magnet)) return;
     int index = Magnets.IndexOf(magnet);
     Magnets.Remove(magnet);
     if (nextTalker == index) DoneTalking();
 }
Пример #2
0
 private static void AddMagnet(AggroMagnet magnet)
 {
     if (!Magnets.Contains(magnet))
     {
         Magnets.Add(magnet);
     }
     if (Magnets.Count == 1)
     {
         TalkNext();
     }
 }
Пример #3
0
        private static void RemoveMagnet(AggroMagnet magnet)
        {
            AggroChaser.RemoveMagnetAggro(magnet.transform);
            if (!Magnets.Contains(magnet))
            {
                return;
            }
            int index = Magnets.IndexOf(magnet);

            Magnets.Remove(magnet);
            if (nextTalker == index)
            {
                DoneTalking();
            }
        }
Пример #4
0
 private static void AddMagnet(AggroMagnet magnet) {
     if (!Magnets.Contains(magnet)) Magnets.Add(magnet);
     if (Magnets.Count == 1) TalkNext();
 }