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; } }
internal void RestoreBrains() { // TODO: Check current brain and switch it to new. (Current brain hotSwitch) idleBrain = oldIdleBrain; fightBrain = oldFightBrain; }
private void Start() { ChangeBrain(idleBrain); oldIdleBrain = idleBrain; oldFightBrain = fightBrain; }