Example #1
0
        public static SystemNoticeView Create(Transform parent)
        {
            SystemNoticeView view = Instantiate <GameObject>(ResMgr.instance.Load <GameObject>(PREFAB_PATH)).GetComponent <SystemNoticeView>();

            view.transform.SetParent(parent, false);
            view.transform.localPosition = Vector3.zero;
            return(view);
        }
Example #2
0
        private void Init()
        {
//			for(int i = 0,count = toggles.Length;i<count;i++)
//			{
//				if(i == 0)
//					toggles[i].isOn = true;
//				else
//					toggles[i].isOn = false;
//				toggles[i].GetComponent<ToggleContent>().Set(i,Localization.Get("ui.chat_view.toggle"+i));
//
//			}
            SystemNoticeView.Create(systemNoticeRoot);
            Refresh();
        }