Пример #1
0
 internal void ChangeBrains(TurnIntoClass turnIntoTarget)
 {
     // TODO: Check current brain and switch it to new. (Current brain hotSwitch)
     if (turnIntoTarget.idleBrain != null)
     {
         idleBrain = turnIntoTarget.idleBrain;
     }
     if (turnIntoTarget.fightBrain != null)
     {
         fightBrain = turnIntoTarget.fightBrain;
     }
 }
Пример #2
0
 internal void RestoreBrains()
 {
     // TODO: Check current brain and switch it to new. (Current brain hotSwitch)
     idleBrain  = oldIdleBrain;
     fightBrain = oldFightBrain;
 }
Пример #3
0
 private void Start()
 {
     ChangeBrain(idleBrain);
     oldIdleBrain  = idleBrain;
     oldFightBrain = fightBrain;
 }