Exemplo n.º 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);
            }
        });
    }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
 //  public Scrollbar srb;
 public void Awake()
 {
     instance = this;
 }
Exemplo n.º 4
0
 private void Awake()
 {
     _instance = this;
 }