예제 #1
0
        void OnTriggerExit(Collider other)
        {
            DynamicCollider collider = DynamicCollider.GetScript(other);

            if (collider != null)
            {
                collider.OnExitLantern(lantern);
            }
        }
예제 #2
0
        public static DynamicCollider GetScript(Collider collider)
        {
            DynamicCollider returnScript = null;

            if (allColliders.ContainsKey(collider) == true)
            {
                returnScript = allColliders [collider];
            }
            return(returnScript);
        }