Beispiel #1
0
    protected virtual void Awake()
    {
        movement = GetComponent <RobotMovement>();

        obstacleDetector   = GetComponent <RobotObstacleDetector>();
        cleanFloorDetector = GetComponent <RobotCleanFloorDetector>();
        dirtyFloorDetector = GetComponent <RobotDirtyFloorDetector>();
    }
 private void Awake()
 {
     obstacleDetector = GetComponent <RobotObstacleDetector>();
 }