protected virtual void LateUpdate()
        {
            if (target != null)
            {
                if (P3dInputManager.IsPressed(key) == true)
                {
                    if (storeStates == true && target.isPlaying == false)
                    {
                        P3dStateManager.StoreAllStates();
                    }

                    target.Play();
                }
                else
                {
                    target.Stop();
                }
            }
        }
        protected virtual void Update()
        {
            if (target != null)
            {
                if (P3dInputManager.IsPressed(key) == true)
                {
                    if (storeStates == true && target.enabled == false)
                    {
                        P3dStateManager.StoreAllStates();
                    }

                    target.enabled = true;
                }
                else
                {
                    target.enabled = false;
                }
            }
        }
Beispiel #3
0
        protected virtual void Update()
        {
            if (IsSimulation == true)
            {
                LeftTrigger  = P3dInputManager.IsPressed(simulatedLeftTrigger);
                LeftGrip     = P3dInputManager.IsPressed(simulatedLeftGrip);
                RightTrigger = P3dInputManager.IsPressed(simulatedRightTrigger);
                RightGrip    = P3dInputManager.IsPressed(simulatedRightGrip);

                if (P3dInputManager.PointOverGui(P3dInputManager.MousePosition) == true)
                {
                    LeftTrigger  = false;
                    LeftGrip     = false;
                    RightTrigger = false;
                    RightGrip    = false;
                }
            }

            //if (P3dInputManager.IsPressed(recenterKey) == true)
            //{
            //	Recenter();
            //}
        }