Пример #1
0
 static void AddChaser(AggroChaser chaser, Transform trans)
 {
     if (ChaserTrans.Contains(trans))
     {
         return;
     }
     Chasers.Add(chaser);
     ChaserTrans.Add(trans);
 }
Пример #2
0
 static void RemoveChaser(AggroChaser chaser, Transform trans)
 {
     if (ChaserTrans.Contains(trans))
     {
         ChaserTrans.Remove(trans);
     }
     if (Chasers.Contains(chaser))
     {
         Chasers.Remove(chaser);
     }
 }
Пример #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
 static void RemoveChaser(AggroChaser chaser, Transform trans) {
     if (ChaserTrans.Contains(trans)) ChaserTrans.Remove(trans);
     if (Chasers.Contains(chaser)) Chasers.Remove(chaser);
 }
Пример #5
0
 static void AddChaser(AggroChaser chaser, Transform trans) {
     if (ChaserTrans.Contains(trans)) return;
     Chasers.Add(chaser);
     ChaserTrans.Add(trans);
 }
Пример #6
0
 public void IncreaseAggroFor(Transform possibleChaser, int amount)
 {
     AggroChaser.MaybeChangeAggro(transform, possibleChaser, amount);
 }
Пример #7
0
 public void RemoveAllAggro()
 {
     AggroChaser.RemoveMagnetAggro(transform);
 }
Пример #8
0
 public void ChangeGlobalAggro(float amount)
 {
     AggroChaser.ChangeGlobalAggro(transform, amount);
 }
Пример #9
0
 private void Talk()
 {
     AggroChaser.AggroPing(transform);
     DoneTalking();
 }
Пример #10
0
 void Awake()
 {
     chaser        = GetComponent <AggroChaser>();
     view          = GetComponent <NetView>();
     attackChecker = GetComponent <AttackChecker>();
 }
Пример #11
0
 void Awake() {
     chaser = GetComponent<AggroChaser>();
     view = GetComponent<NetView>();
     attackChecker = GetComponent<AttackChecker>();
 }