public GameObject CreateEffectUI(string EffectKey, IUIObject UIObject) { GameObject gameObject = EffectDefine.Attach(string.Format("UI_{0}", EffectKey)); NrTSingleton <UIDataManager> .Instance.EffectLocateUIPos(gameObject, UIObject); this.AddEffect(EffectKey, gameObject); return(gameObject); }
public GameObject CreateEffectUI(string EffectKey, Vector2 ScreenPos, NkEffectUnit.DeleteCallBack DelCallBack) { GameObject gameObject = EffectDefine.Attach(string.Format("UI_{0}", EffectKey)); this.AddEffect(EffectKey, gameObject, DelCallBack); gameObject.transform.position = NrTSingleton <UIDataManager> .Instance.GetEffectUIPos(ScreenPos); return(gameObject); }