Esempio n. 1
0
    void OnApplicationFocus(bool hasFocus)
    {
#if !UNITY_EDITOR
        if (!GameConst.isPlay)
        {
            return;
        }
        if (hasFocus)
        {
            ProtoReq.cancelAuto();
        }
        else
        {
            ProtoReq.changeAuto();
        }
#endif
    }