protected override void UnloadData() { Instance = null; MyAPIGateway.Entities.OnEntityAdd -= EntityAdded; MyVisualScriptLogicProvider.PlayerConnected -= PlayersChanged; MyVisualScriptLogicProvider.PlayerDisconnected -= PlayersChanged; MyAPIGateway.Session.Factions.FactionEdited -= FactionEdited; }
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; }