Example #1
0
 // Update is called once per frame
 static public void Spawn(GameObject anchor, IParamater param)
 {
     if (Instance)
     {
         PersonalUI personal = Instantiate(Instance._personal, anchor.transform).GetComponent <PersonalUI>();
         personal.Init(param);
     }
 }
Example #2
0
 // Use this for initialization
 public void Init(IParamater paramater)
 {
     _data = paramater;
 }