private void OnTriggerEnter(Collider collider) { CBaseEntity pEnt = g.ToBaseEntity(collider.gameObject); if (pEnt != null) { pEnt.SetIsTouchedByController(true); m_pColliding.Add(pEnt); } }
private void OnTriggerExit(Collider collider) { CBaseEntity pEnt = g.ToBaseEntity(collider.gameObject); if (pEnt != null) { pEnt.SetIsTouchedByController(false); m_pColliding.Remove(pEnt); pEnt.ForceDrop(this); } }