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