Exemple #1
0
    // Start is called before the first frame update
    void Start()
    {
        Player.GetSingleton().Init();

        this.InitUI();
        TUIManager.GetSingleton().OpenUI("UIMain");

        AudioManager.GetSingleton().Init();
    }
Exemple #2
0
    public override void OnInitialize(params object[] parms)
    {
        this.TextContent.text = (string)parms[0];
        IEnumerator TimeHide()
        {
            yield return(new WaitForSeconds(0.5f));

            float y = 0;

            for (int i = 0; i < 30; i++)
            {
                y += 0.1f * Time.deltaTime;
                this.TextNode.transform.position += new Vector3(0, y, 0);
                yield return(0);
            }
            TUIManager.GetSingleton().CloseUI(this);
        }

        StartCoroutine(TimeHide());
    }
Exemple #3
0
 public void Close()
 {
     TUIManager.GetSingleton().CloseUI(this);
 }
Exemple #4
0
 public static void ShowTips(string aText)
 {
     TUIManager.GetSingleton().OpenUI("UIPopTips", aText);
 }
Exemple #5
0
 private void InitUI()
 {
     TUIManager.GetSingleton().Initialize();
     TUIManager.GetSingleton().RegisterUI("UI/", "UIMain");
     TUIManager.GetSingleton().RegisterUI("UI/", "UIPopTips");
 }
Exemple #6
0
 // Update is called once per frame
 void Update()
 {
     TUIManager.GetSingleton().UpdateUI();
 }