Exemple #1
0
    void OnCollisionEnter2D(Collision2D contacts)
    {
        if ((null != InstanceRoot) && (null != InstanceRoot.FunctionColliderEnter))
        {
            BootUp();

            InformationEnter.Pair2D    = null;
            InformationEnter.Contact2D = contacts;

            InstanceRoot.FunctionColliderEnter(InstanceRoot, InstanceGamaObject, InstanceRoot.DataAnimation.TableParts[IDParts].Name, IDParts, InformationEnter);
        }
    }
Exemple #2
0
//	void Update()
//	{
//	}

//  void LateUpdate()
//	{
//	}

    void OnTriggerEnter(Collider pair)
    {
        if ((null != InstanceRoot) && (null != InstanceRoot.FunctionColliderEnter))
        {
            BootUp();

            InformationEnter.Pair    = pair;
            InformationEnter.Contact = null;

            InstanceRoot.FunctionColliderEnter(InstanceRoot, InstanceGamaObject, InstanceRoot.DataAnimation.TableParts[IDParts].Name, IDParts, InformationEnter);
        }
    }