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