Ejemplo n.º 1
0
        void CheckEffectTouch(Collision collision)
        {
            HapticEffectTrigger hapticEffect = collision.gameObject.GetComponent <HapticEffectTrigger>();

            if (hapticEffect)
            {
                if (hapticEffect.ScriptName.Length > 0)
                {
                    _owner.EffectActivation(hapticEffect.ScriptName);
                }
            }
        }
        void CheckEffectTouch(Collision collision)
        {
            GameObject          other        = collision.gameObject;
            HapticEffectTrigger hapticEffect = other.GetComponent <HapticEffectTrigger>();

            if (hapticEffect)
            {
                if (hapticEffect.EffectName.Length > 0)
                {
                    _owner.EffectActivation(hapticEffect.EffectName, other);
                }
            }
        }