コード例 #1
0
    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");
    }
コード例 #2
0
    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
    }