// 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); } }
// Use this for initialization public void Init(IParamater paramater) { _data = paramater; }