Beispiel #1
0
        //-------------------------------------------------
        void OnEnable()
        {
            // Stagger updates between hands
            float hoverUpdateBegin = ((otherHand != null) && (otherHand.GetInstanceID() < GetInstanceID())) ? (0.5f * hoverUpdateInterval) : (0.0f);

            InvokeRepeating("UpdateHovering", hoverUpdateBegin, hoverUpdateInterval);
        }