예제 #1
0
    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);
    }
예제 #2
0
 public void PlayerInfoBtnCB(GameObject obj)
 {
     PlayerInfoLayer.Create();
 }