コード例 #1
0
ファイル: ALPSController.cs プロジェクト: lonsdale341/City
 /// <summary>
 /// Sets a new device configuration.
 /// </summary>
 // <param name="_device">Name of the device.</param>
 public void SetDevice(Device _device)
 {
     deviceConfig                = ALPSDevice.GetConfig(_device);
     ALPSCamera.deviceConfig     = deviceConfig;
     ALPSBarrelMesh.deviceConfig = deviceConfig;
     ALPSCrosshairs.deviceConfig = deviceConfig;
     ClearDirty();
 }
コード例 #2
0
    //=====================================================================================================
    // Functions
    //=====================================================================================================

    public void OnEnable()
    {
        controller                  = (ALPSController)target;
        deviceConfig                = (controller.deviceConfig == null)? ALPSDevice.GetConfig(Device.DEFAULT):controller.deviceConfig;
        controller.deviceConfig     = deviceConfig;
        ALPSCamera.deviceConfig     = deviceConfig;
        ALPSBarrelMesh.deviceConfig = deviceConfig;
        ALPSCrosshairs.deviceConfig = deviceConfig;
        screenSize                  = deviceConfig.GetScreenOption();
    }
コード例 #3
0
    //=====================================================================================================
    // Functions
    //=====================================================================================================

    public void OnEnable()
    {
        controller              = (ALPSControllerLight)target;
        deviceConfig            = (controller.deviceConfig == null)? ALPSDevice.GetConfig(Device.DEFAULT):controller.deviceConfig;
        controller.deviceConfig = deviceConfig;
    }
コード例 #4
0
 /// <summary>
 /// Sets a new device configuration.
 /// </summary>
 // <param name="_device">Name of the device.</param>
 public void SetDevice(Device _device)
 {
     deviceConfig = ALPSDevice.GetConfig(_device);
     ClearDirty();
 }