コード例 #1
0
    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);
    }
コード例 #2
0
ファイル: NcEffectBehaviour.cs プロジェクト: satela/xjhU3d
	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;
	}