BuilderPattern.RobotEngineer.GetRobot C# (CSharp) Метод

GetRobot() публичный Метод

public GetRobot ( ) : Robot
Результат Robot
        public Robot GetRobot()
        {
            return this.robotBuilder.GetRobot();
        }

Usage Example

        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());
        }
All Usage Examples Of BuilderPattern.RobotEngineer::GetRobot