ToString() public method

public ToString ( ) : string
return string
Beispiel #1
0
        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());
        }