Example #1
0
 public void Toggle_Video_Position_Update()
 {
     bUpdateVidPos = !bUpdateVidPos;
     if (bUpdateVidPos)
     {
         DataReqEventArgs eData = new DataReqEventArgs();
         eData.Position = new TimeSpan(0, 0, 0, 0, Convert.ToInt32(dSaveVidPos));
         SetPosition?.Invoke(this, eData);
     }
 }
Example #2
0
        public virtual void Update()
        {
            if (!IsBusy &&
                !IsReady &&
                IsCubemapAvailable &&
                texture == null)
            {
                this.Report(0);
                texture = GetCubemap(this);

                if (texture != null)
                {
                    skybox.exposure        = 1;
                    skybox.imageType       = SkyboxManager.ImageType.Degrees360;
                    skybox.layout          = SkyboxManager.Mode.Cube;
                    skybox.mirror180OnBack = false;
                    rotation            = skybox.rotation = LastRotation;
                    skybox.stereoLayout = SkyboxManager.StereoLayout.None;
                    skybox.tint         = Color.gray;
                    skybox.useMipMap    = false;
                    skybox.SetTexture(texture);

                    OnReady();
                }
            }
#if UNITY_EDITOR
            else if (rotation != LastRotation)
            {
                skybox.rotation = rotation;
                LastRotation    = rotation;
            }
            else if (transform.localPosition != lastPosition)
            {
                SetPosition?.Invoke(this, transform.localPosition);
                lastPosition = transform.localPosition;
            }
#endif
        }
Example #3
0
    private void OnConnectionStepChange()
    {
        if (!(FB.ConnectionStep != 1.0))
        {
            FB.Connect();
        }

        if (!(FB.ConnectionStep != 5.0))
        {
            if (!(FB.RoomData.Values.First() != FB.MyName))
            {
                MyPosition = 1;

                FB.MyData.Add("Car", "0 : 0");
                FB.SetValue();
            }
            else
            {
                MyPosition = 2;
            }

            SetPosition?.Invoke();
        }
    }