Exemple #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();
 }
Exemple #2
0
 private static void AddMagnet(AggroMagnet magnet)
 {
     if (!Magnets.Contains(magnet))
     {
         Magnets.Add(magnet);
     }
     if (Magnets.Count == 1)
     {
         TalkNext();
     }
 }
Exemple #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();
            }
        }
Exemple #4
0
 private static void AddMagnet(AggroMagnet magnet) {
     if (!Magnets.Contains(magnet)) Magnets.Add(magnet);
     if (Magnets.Count == 1) TalkNext();
 }