public void MakeRobot()
{
this.robotBuilder.BuildRobotHead();
this.robotBuilder.BuildRobotTorso();
this.robotBuilder.BuildRobotArms();
this.robotBuilder.BuildRobotLegs();
}
void OnEnable() { Debug.Log ("------------------"); Debug.Log ("BUILDER DESIGN PATTERN"); IRobotBuilder oldRobot = new OldRobotBuilder(); RobotEngineer engineer = new RobotEngineer(oldRobot); engineer.MakeRobot(); Robot firstRobot = engineer.GetRobot(); Debug.Log ("First Robot built"); Debug.Log (firstRobot.ToString()); }