Exemplo n.º 1
0
    IEnumerator deferral_thread(GameObject aDestroy, SignOutDeferral aDef)
    {
        yield return(null);

        aDef.Complete();
        GameObject.Destroy(aDestroy);
    }
Exemplo n.º 2
0
    void OnUserSignOutStarted(int id, System.IntPtr deferred)
    {
        ManagerManager.Log("OnUserSignOutStarted " + id + " " + GetUserName(id));
        var deferral = new SignOutDeferral(deferred);
        var dummy    = (new GameObject("genDummy")).AddComponent <DummyBehaviour> ();

        dummy.StartCoroutine(deferral_thread(dummy.gameObject, deferral));
    }