/// <summary> /// Called by CryEngine. Do not call directly. /// </summary> public static IFlowNode CreateInstance(IFlowNode.SActivationInfo info) { var internalNode = new InternalFlowNode <T>(); internalNode._gcLock = GCHandle.Alloc(internalNode); internalNode.Node = (T)Activator.CreateInstance(typeof(T), new object[] {}); return(internalNode); }
/// <summary> /// Called by CryEngine. Do not call directly. /// </summary> public override IFlowNodePtr Create(IFlowNode.SActivationInfo info) { return(new IFlowNodePtr(InternalFlowNode <T> .CreateInstance(info))); }