void Awake() { #if UNITY_IOS || UNITY_ANDROID EngineMobile.Start(); #endif SatelliteLibrary.Init(); // Register Satellite and Component Satellite.Register("FiL_RefereeSat"); refereeComp = new PolledComponent("FiL_Referee"); }
void OnApplicationQuit() { // If we are currently in a session, we can report that we are now stopped if (Engine.InSession) { refereeComp.ReportState(ComponentState.STOPPED); } SatelliteLibrary.Close(); #if UNITY_IOS || UNITY_ANDROID EngineMobile.Stop(); #endif }