Example #1
0
    public void ShowAlertView(GameObject prefab, GameObject target, Hashtable args)
    {
        GameObject alert_obj = Instantiate(prefab, Vector3.zero, Quaternion.identity) as GameObject;

        alert_obj.transform.SetParent(transform, false);
        alert_obj.GetComponent <Canvas> ().overrideSorting = true;
        AlertView alerView = alert_obj.GetComponent <AlertView>();

        alerView.ShowAlertView(target, args);

        active_alert_views.Add(alert_obj);

        ShowOverlay();
    }
Example #2
0
    private void ReceivedVersion(Hashtable result)
    {
        VersionResponseParameter parameter = new VersionResponseParameter();

        parameter.InitialParameterObjectFromHashtable(result);
        this.m_ServerVersion = parameter.CurrentVersion;
        this.m_UpdateUrl     = parameter.UpdateUrl;
        if (!ClientVersion.Instance.Version.Equals(parameter.CurrentVersion))
        {
            this.StopCoroutine("Initialize");
            if (Application.platform == RuntimePlatform.IPhonePlayer)
            {
                AlertView.ShowAlertView(ClientStringConstants.VERSION_ERROR_TITLE, ClientStringConstants.VERSION_ERROR_DESCRIPTION,
                                        ClientStringConstants.VERSION_ERROR_OK_BUTTON_TITLE);
            }
            else
            {
                Debug.Log(ClientStringConstants.VERSION_ERROR_DESCRIPTION);
                Debug.Log(this.m_UpdateUrl);
            }
        }
    }