Exemple #1
0
    public void close_screen()
    {
        isClosed = true;
        if (isShowLogo == true)
        {
            return;
        }

        CancelInvoke("close_screen");
        Color c = obj.color;

        c.a      -= 0.05f;
        obj.color = c;
        if (obj.color.a <= 0.0f)
        {
            obj  = null;
            inst = null;
            Destroy(UnityEngine.GameObject.Find("init_screen"));
            return;
        }
        else if (obj.color.a <= 0.8f)
        {
            if (UnityEngine.GameObject.Find("init_logo") != null)
            {
                Destroy(UnityEngine.GameObject.Find("init_logo"));
            }
        }

        InvokeRepeating("close_screen", 0.1f, 0.1f);
    }
Exemple #2
0
 void Awake()
 {
     obj = GetComponent <UITexture>();
     //loadingbar_backgroundpic.Transparent_Colored = Shader.Find("Unlit/Transparent Colored");
     //obj.shader = loadingbar_backgroundpic.Transparent_Colored;
     inst = this;
 }