From 8eb32e43e935b1f2b57a52e3de69cfeeaca38eda Mon Sep 17 00:00:00 2001 From: MiniatVReStudio <121112819+MiniatVReStudio@users.noreply.github.com> Date: Fri, 23 Dec 2022 15:58:30 -0600 Subject: [PATCH] Delete MMFCollisionHelper Not worth adding to your collection ;) --- CollisionManager/MMFCollisionHelper | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 CollisionManager/MMFCollisionHelper diff --git a/CollisionManager/MMFCollisionHelper b/CollisionManager/MMFCollisionHelper deleted file mode 100644 index c99b216..0000000 --- a/CollisionManager/MMFCollisionHelper +++ /dev/null @@ -1,28 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using static MMFCollisionManager; - -public class MMFCollisionHelper : MonoBehaviour -{ - [Tooltip("the game object that your MMFCollisionManager is on - drag the game object with the MMFCollisionManager script here")] - public MMFCollisionManager MMFCollisionManager; - [Tooltip("the 'List Name' that the game object you want to collide with is in - copy the name and paste it here")] - public string MMFCollisionListName; - - private void OnTriggerEnter(Collider other) - { - // Find the MMFCollisionLists that contains the collided gameObject - MMFCollisionLists CollisionList = MMFCollisionManager.CollisionLists.Find(x => x.ListName == MMFCollisionListName); - - // Find the MMFObjects that contains the collided gameObject - MMFObjects feedbackObject = CollisionList.feedbackObjects.Find(x => x.GameObject == other.gameObject); - - // Check if the MMFCollisionLists exists and the colliding object is in the specified layer and has the correct tag (if CompareTag is true) - if (CollisionList != null && feedbackObject.LayerMask == (feedbackObject.LayerMask | (1 << other.gameObject.layer)) && (!feedbackObject.CompareTag || other.gameObject.CompareTag(feedbackObject.TagName))) - { - // Call the CheckAndPlay method with the colliding object - MMFCollisionManager.CheckAndPlay(other.gameObject); - } - } -}