示例#1
0
文件: GameApp.cs 项目: s344951241/mj
    void OnApplicationFocus(bool hasFocus)
    {
#if !UNITY_EDITOR
        if (!GameConst.isPlay)
        {
            return;
        }
        if (hasFocus)
        {
            ProtoReq.cancelAuto();
        }
        else
        {
            ProtoReq.changeAuto();
        }
#endif
    }