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