Example #1
0
        public void SetBrain(ABrain newBrain)
        {
            CurrentBrain?.Stop();

            CurrentBrain = newBrain;

            if (Aggros == null)
            {
                Aggros = new Dictionary <ushort, AggroInfo>();
            }

            CurrentBrain?.Start(Aggros);
        }
Example #2
0
        public void SetBrain(ABrain NewBrain)
        {
            if (CurrentBrain != null)
            {
                CurrentBrain.Stop();
            }

            CurrentBrain = NewBrain;

            if (CurrentBrain != null)
            {
                CurrentBrain.Start();
            }
        }