Exemple #1
0
        public static FUniversalPanel ChangeUniversal(this GameObject thisGo, string keyName = "F_")
        {
            FUniversalPanel fp = SceneManager.instance.AddComponent <FUniversalPanel>(thisGo);

            fp.mKey = keyName;
            fp.ApplyData();
            return(fp);
        }
Exemple #2
0
    void applyData()
    {
        isUpdateShow = false;
        np.ApplyData();
        for (int i = 0; i < np.mValue.Count; i++)
        {
            Debug.Log(np.mValue[i] + "custon");
        }

        FUniversalPanel[] ts = np.transform.GetComponentsInChildren <FUniversalPanel>(true);
        for (int i = 0; i < ts.Length; i++)
        {
            if (ts[i] != np)
            {
                ts[i].ApplyData();
            }
        }
    }