Example #1
0
    // This finds the Collision Object script and tells it a collision was found
    private static void NotifyOfCollisionWith(this GameObject self, GameObject other)
    {
        CollisionObject collisionScript = self.GetComponent <CollisionObject>();

        if (collisionScript != null)
        {
            collisionScript.CollisionTracker(other);
        }
    }