コード例 #1
0
ファイル: AI.cs プロジェクト: BartInTheField/RoomCleanerAI
    protected virtual void Awake()
    {
        movement = GetComponent <RobotMovement>();

        obstacleDetector   = GetComponent <RobotObstacleDetector>();
        cleanFloorDetector = GetComponent <RobotCleanFloorDetector>();
        dirtyFloorDetector = GetComponent <RobotDirtyFloorDetector>();
    }
コード例 #2
0
 private void Awake()
 {
     obstacleDetector = GetComponent <RobotObstacleDetector>();
 }