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); } }
public void CloseHint(HintCtrl hint) { hint.Release(); mUILayerList.Remove(hint); }
void Awake() { instance = this; }