private void Start()
    {
        if (Application.isEditor)
        {
            return;
        }

        if (Delegate == null)
        {
            throw new UnityException("[ERROR] Must set AirVRClient.Delegate.");
        }
        AirVRClientLicenseFile licenseFile = new AirVRClientLicenseFile("client.license");
        int result = onairvr_Init(licenseFile.path, AudioSettings.outputSampleRate, _profile.hasInput);

        if (result < 0 && result != -4)
        {
            Delegate.AirVRClientFailed("failed to init AirVRClient : " + result);
        }
        licenseFile.Release();

        _stateMachine = new AirVRClientStateMachine(this, _profile.delayToResumePlayback);
    }
Ejemplo n.º 2
0
 public StateReady(AirVRClientStateMachine owner) : base(owner)
 {
 }
Ejemplo n.º 3
0
 public StateDisconnected(AirVRClientStateMachine owner) : base(owner)
 {
 }
Ejemplo n.º 4
0
 public StateResuming(AirVRClientStateMachine owner, float delayToResume) : base(owner)
 {
     _delayToResume     = delayToResume;
     _remainingToResume = delayToResume;
 }
Ejemplo n.º 5
0
 public State(AirVRClientStateMachine owner)
 {
     this.owner = owner;
 }
Ejemplo n.º 6
0
 public StatePaused(AirVRClientStateMachine owner) : base(owner)
 {
 }
Ejemplo n.º 7
0
 public StateInactive(AirVRClientStateMachine owner) : base(owner)
 {
 }
Ejemplo n.º 8
0
 public StatePlaying(AirVRClientStateMachine owner) : base(owner)
 {
 }