Пример #1
0
 protected override void UnloadData()
 {
     Instance = null;
     MyAPIGateway.Entities.OnEntityAdd              -= EntityAdded;
     MyVisualScriptLogicProvider.PlayerConnected    -= PlayersChanged;
     MyVisualScriptLogicProvider.PlayerDisconnected -= PlayersChanged;
     MyAPIGateway.Session.Factions.FactionEdited    -= FactionEdited;
 }
Пример #2
0
 public override void LoadData()
 {
     Instance    = this;
     Log.ModName = "Realistic Thrusters";
     MyAPIGateway.Entities.OnEntityAdd              += EntityAdded;
     MyVisualScriptLogicProvider.PlayerConnected    += PlayersChanged;
     MyVisualScriptLogicProvider.PlayerDisconnected += PlayersChanged;
     MyAPIGateway.Session.Factions.FactionEdited    += FactionEdited;
 }