Esempio n. 1
0
    private IEnumerator Loading()
    {
        var t   = Time.time;
        var img = transform.Find("bottom/Image").GetComponent <Image>();

        img.fillAmount = 0;
        while (true)
        {
            yield return(new WaitForSeconds(0.02f));

            img.fillAmount = (Time.time - t) / 3;
            if (Time.time - t > 3)
            {
                MyUiManager.GetInstance().OffPanel();
                //MyUiManager.GetInstance().PushPanel(MyUiType.MainPanel);
                break;
            }
        }
    }
Esempio n. 2
0
 public void Close()
 {
     MyUiManager.GetInstance().OffPanel();
 }
Esempio n. 3
0
 // Start is called before the first frame update
 void Start()
 {
     uiManager = MyUiManager.GetInstance();
 }
Esempio n. 4
0
 // Start is called before the first frame update
 void Start()
 {
     MyUiManager.GetInstance().PushPanel(MyUiType.FirstPanel);
 }
Esempio n. 5
0
 // Start is called before the first frame update
 void Start()
 {
     uiManager = MyUiManager.GetInstance();
     //MyUiManager.GetInstance().PushPanel(MyUiType.ThirdInfoPanel);
 }