Exemple #1
0
        private void OnTriggerEnter(Collider collider)
        {
            CBaseEntity pEnt = g.ToBaseEntity(collider.gameObject);

            if (pEnt != null)
            {
                pEnt.SetIsTouchedByController(true);
                m_pColliding.Add(pEnt);
            }
        }
Exemple #2
0
        private void OnTriggerExit(Collider collider)
        {
            CBaseEntity pEnt = g.ToBaseEntity(collider.gameObject);

            if (pEnt != null)
            {
                pEnt.SetIsTouchedByController(false);
                m_pColliding.Remove(pEnt);
                pEnt.ForceDrop(this);
            }
        }