public static PlayerInfoLayer Create() { GameObject playerInfoLayer = NGUITools.AddChild( GameObject.Find("UI Root"), Resources.Load("Prefabs/UI/PlayerInfoLayer") as GameObject); PlayerInfoLayer layer = playerInfoLayer.GetComponent <PlayerInfoLayer>(); layer.Init(); layer.Show(); return(layer); }
public void PlayerInfoBtnCB(GameObject obj) { PlayerInfoLayer.Create(); }