Example #1
0
    public void ShowHint(string text)
    {
        HintCtrl UICtrl = new HintCtrl();

        if (UICtrl != null)
        {
            UICtrl.Setup("hint", this);
            UICtrl.SetContent(text);
            UICtrl.GetTransform().SetSiblingIndex(ZhidingSeblingIdx);
            mHints.Add(UICtrl);
        }
    }
Example #2
0
 public void CloseHint(HintCtrl hint)
 {
     hint.Release();
     mUILayerList.Remove(hint);
 }
Example #3
0
 void Awake()
 {
     instance = this;
 }