public void SetBrain(ABrain newBrain) { CurrentBrain?.Stop(); CurrentBrain = newBrain; if (Aggros == null) { Aggros = new Dictionary <ushort, AggroInfo>(); } CurrentBrain?.Start(Aggros); }
public void SetBrain(ABrain NewBrain) { if (CurrentBrain != null) { CurrentBrain.Stop(); } CurrentBrain = NewBrain; if (CurrentBrain != null) { CurrentBrain.Start(); } }