Exemplo n.º 1
0
 public override void OnAddedToScene()
 {
     base.OnAddedToScene();
     _tracker = MySession.Static.Components.Get <EquiEntityControllerTracker>();
     if (_saveData.ControlledEntity != 0 && _saveData.ControlledSlot != null)
     {
         MyEntities.OnEntityAdd += CheckForEntity;
         CheckForEntity(null);
     }
 }
Exemplo n.º 2
0
 public override void OnRemovedFromScene()
 {
     base.OnRemovedFromScene();
     _tracker = null;
     MyEntities.OnEntityAdd -= CheckForEntity;
 }