/// <summary>振る舞いをコピーする copy behaivior.</summary> /// <param name="node">コピー元</param> public void Imitate(ProcessNode node) { this._duration = node._duration; this._summary = node._summary; // this._localId = node._localId; this.onProcess = node.onProcess; }
/// <summary>初期化 Initialize.</summary> /// <param name="duration">遷移時間 Transition duration.</param> /// <param name="next">遷移先ノード Next node.</param> /// <param name="process">処理イベント Processing function.</param> public void Initialize(float duration, FlowAINode next, ProcessingEventHandler process) { Initialize(duration, next); onProcess += process; _initial = Copy(); }
/// <summary>処理ノードのコピーインスタンスを生成する create ProcessNode copy instance.</summary> /// <returns></returns> public ProcessNode Copy() { var node = new ProcessNode(); node._duration = this._duration; node._localId = this._localId; node._nextNode = this._nextNode; node._summary = this._summary; node.onProcess = this.onProcess; return(node); }