public void AddTrigger(MyEntity entity, int triggerSize)
 {
     if (entity == null)
         return;
     MyUpdateTriggerComponent t;
     if (m_triggers.TryGetValue(entity, out t))
     {
         t.Size = triggerSize;
     }
     else
     {
         t = new MyUpdateTriggerComponent(triggerSize);
         entity.Components.Add(t);
     }
 }
 public void AddTrigger(MyUpdateTriggerComponent trigger)
 {
     Debug.Assert(!m_triggers.ContainsKey((MyEntity)trigger.Entity));
     m_triggers[(MyEntity)trigger.Entity] = trigger;
 }