Exemplo n.º 1
0
        public void SetBrain(ABrain newBrain)
        {
            CurrentBrain?.Stop();

            CurrentBrain = newBrain;

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

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

            CurrentBrain = NewBrain;

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