Hide() public static method

public static Hide ( ) : void
return void
Example #1
0
    IEnumerator GET(string url, Dict <string, string> rArgs, Action <WWW> rOnResponse)
    {
        string Parameters;
        bool   first;

        if (rArgs.Count > 0)
        {
            first      = true;
            Parameters = "?";

            foreach (var arg in rArgs)
            {
                if (first)
                {
                    first = false;
                }
                else
                {
                    Parameters += "&";
                }

                Parameters += arg.Key + "=" + arg.Value;
            }
        }
        else
        {
            Parameters = "";
        }

        url = url + Parameters;
        WWW rWWW = new WWW(url);

        yield return(rWWW);

        if (rWWW.error != null)
        {
            Debug.Log("error :" + rWWW.error);
        }
        else
        {
            rOnResponse.Invoke(rWWW);
            rWWW.Dispose();
            rWWW = null;
        }
        Destroy(this);
        WaitingLayer.Hide();
    }
Example #2
0
        /// <summary>
        /// 面板加载完成后的回调
        /// </summary>
        /// <param name="rGo">回传的面板对象</param>
        protected virtual void OnCreated(GameObject rGo)
        {
            WaitingLayer.Hide();
            gameObject = rGo;
            transform  = rGo.GetComponent <Transform>();
            behaviour  = rGo.GetComponent <LShapBehaviour>();

            var rPanel = PanelStack.Instance.PanelCurrent;

            if (gameObject.name.Contains(rPanel.PanelName))
            {
                rPanel.IsCreated = true;
                DebugConsole.Log("[script match complete]:" + gameObject.name);
            }
            else
            {
                DebugConsole.Log("[script match failed]:" + gameObject.name);
            }
        }
Example #3
0
        IEnumerator WaitingLayerEnumerator()
        {
            yield return(new WaitForSeconds(2));

            WaitingLayer.Hide();
        }