コード例 #1
0
ファイル: LEDSensor.cs プロジェクト: zjzcn1/simulator
    private void SetLEDColor(LEDColorTypes colorIndex)
    {
        if (isFirstEnabled)
        {
            isFirstEnabled = false;
            AgentSetup agentSetup = GetComponentInParent <AgentSetup>();
            if (agentSetup != null && agentSetup.NeedsBridge != null)
            {
                agentSetup.AddToNeedsBridge(this);
            }
        }

        currentLEDColor = colorIndex;
    }
コード例 #2
0
ファイル: LEDSensor.cs プロジェクト: shipingsong/simulator
 private void SetLEDColor(LEDColorTypes colorIndex)
 {
     currentLEDColor = colorIndex;
 }