Exemple #1
0
        private void ExcutePhysicsEvent_2D(List <Collider2D> listCollider, EPhysicsEvent ePhysicsEventCustom)
        {
            //if (CheckDebugFilter(EDebugFilter.Debug_Level_Core))
            //    Debug.Log(ePhysicsEventCustom.ToString() + " - " + listCollider.ToStringList());

            if (listCollider.Count != 0 && p_Event_IPhysicsWrapper_OnPhysicsEvent_2D != null)
            {
                p_Event_IPhysicsWrapper_OnPhysicsEvent_2D.Invoke(listCollider, ePhysicsEventCustom);
            }
        }
 private void _pCustomTrigger_p_Event_OnPhysicsEvent_Custom2D(List <Collider2D> listCollider, EPhysicsEvent ePhysicsEvent)
 {
     if (ePhysicsEvent == EPhysicsEvent.Enter || ePhysicsEvent == EPhysicsEvent.Stay)
     {
         Logic_PointEffector(listCollider, Time.deltaTime);
     }
     else if (ePhysicsEvent == EPhysicsEvent.Exit)
     {
         Remove_CheckTimeList(listCollider);
     }
 }