protected GameObject CreateEditorGameObject(GameObject srcGameObj) { #if UNITY_EDITOR GameObject fxmMain = GetFXMakerGameObject(); if (fxmMain != null && (this is NcDuplicator) == false) { _RuntimeIntance arg = new _RuntimeIntance(gameObject, srcGameObj); if (srcGameObj.transform.parent == null) { ChangeParent(GetRootInstanceEffect().transform, srcGameObj.transform, true, null); } fxmMain.SendMessage("OnRuntimeIntance", arg, SendMessageOptions.DontRequireReceiver); } #endif return(srcGameObj); }
protected GameObject CreateEditorGameObject(GameObject srcGameObj) { #if UNITY_EDITOR GameObject fxmMain = GetFXMakerGameObject(); if (fxmMain != null && (this is NcDuplicator) == false) { _RuntimeIntance arg = new _RuntimeIntance(gameObject, srcGameObj); if (srcGameObj.transform.parent == null) ChangeParent(GetRootInstanceEffect().transform, srcGameObj.transform, true, null); fxmMain.SendMessage("OnRuntimeIntance", arg, SendMessageOptions.DontRequireReceiver); } #endif return srcGameObj; }