コード例 #1
0
ファイル: UIManager.cs プロジェクト: gamejoy163/Casino
 public void RegisterWnd(BaseWnd wnd)
 {
     wnd.transform.SetParent(uiRoot);
     wnd.transform.localPosition = Vector3.zero;
     wnd.transform.localScale    = Vector3.one;
     wnd.gameObject.GetComponent <Canvas> ().sortingOrder = GetNextSortOrder();
     _wndList.Add(wnd);
 }
コード例 #2
0
ファイル: UIManager.cs プロジェクト: gamejoy163/Casino
 public void UnregisterWnd(BaseWnd wnd)
 {
     _wndList.Remove(wnd);
     GameObject.Destroy(wnd.gameObject);
 }