Exemplo n.º 1
0
    void OnTriggerExit2D(Collider2D pair)
    {
        if ((null != InstanceRoot) && (null != InstanceRoot.FunctionColliderExit))
        {
            BootUp();

            InformationExit.Pair2D    = pair;
            InformationExit.Contact2D = null;

            InstanceRoot.FunctionColliderExit(InstanceRoot, InstanceGamaObject, InstanceRoot.DataAnimation.TableParts[IDParts].Name, IDParts, InformationExit);
        }
    }
Exemplo n.º 2
0
    void OnCollisionExit(Collision contacts)
    {
        if ((null != InstanceRoot) && (null != InstanceRoot.FunctionColliderExit))
        {
            BootUp();

            InformationExit.Pair    = null;
            InformationExit.Contact = contacts;

            InstanceRoot.FunctionColliderExit(InstanceRoot, InstanceGamaObject, InstanceRoot.DataAnimation.TableParts[IDParts].Name, IDParts, InformationExit);
        }
    }