Ejemplo n.º 1
0
        public virtual void TriggerSignificantMovement()
        {
            //Call significant movement
            RequestTerseUpdate significantMovement = OnSignificantMovement;

            if (significantMovement != null)
            {
                significantMovement();
            }
        }
Ejemplo n.º 2
0
        public virtual void TriggerMovementUpdate()
        {
            //Call significant movement
            RequestTerseUpdate movementUpdate = OnPositionAndVelocityUpdate;

            if (movementUpdate != null)
            {
                movementUpdate();
            }
        }
Ejemplo n.º 3
0
        public virtual void RequestPhysicsterseUpdate()
        {
            // Make a temporary copy of the event to avoid possibility of
            // a race condition if the last subscriber unsubscribes
            // immediately after the null check and before the event is raised.
            RequestTerseUpdate handler = OnRequestTerseUpdate;

            if (handler != null)
            {
                handler();
            }
        }