Exemple #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;
            }
        }
    }
Exemple #2
0
 public void Close()
 {
     MyUiManager.GetInstance().OffPanel();
 }
Exemple #3
0
 // Start is called before the first frame update
 void Start()
 {
     uiManager = MyUiManager.GetInstance();
 }
Exemple #4
0
 // Start is called before the first frame update
 void Start()
 {
     MyUiManager.GetInstance().PushPanel(MyUiType.FirstPanel);
 }
Exemple #5
0
 // Start is called before the first frame update
 void Start()
 {
     uiManager = MyUiManager.GetInstance();
     //MyUiManager.GetInstance().PushPanel(MyUiType.ThirdInfoPanel);
 }