示例#1
0
    public static void Post(Action <bool> response)
    {
        if (dataSync.player.Count == 0)
        {
            response(true);
            return;
        }

        BaseOnline.Instance.WWW(SaveControl.url, dataSync, (string message) => {
            try
            {
                if (BaseOnline.IsSuccess(message))
                {
                    dataSync.player = new List <UserInfo>();
                    response(true);
                }
                else
                {
                    response(false);
                }
            }
            catch (Exception)
            {
                response(false);
            }
        });
    }
示例#2
0
        public Dialog_BaseOnlineButton(BaseOnline baseOnline)
        {
            Base = baseOnline;

            closeOnCancel = true;
            closeOnAccept = false;
            doCloseButton = false;
            doCloseX      = true;
            resizeable    = false;
            draggable     = true;

            SelectTab0MultMax = SessionClientController.Data.GeneralSettings.IncidentMaxMult;
            StatusNeedUpdate  = true;
        }
示例#3
0
 //  public Scrollbar srb;
 public void Awake()
 {
     instance = this;
 }
示例#4
0
 private void Awake()
 {
     _instance = this;
 }