/// <summary> /// TODO: ステートマシンをディープコピーして欲しい。 /// </summary> public static AnimatorStateMachine DeepcopyStatemachine(AnimatorStateMachine old) { AnimatorStateMachine n = new AnimatorStateMachine(); n.anyStatePosition = old.anyStatePosition; n.anyStateTransitions = old.anyStateTransitions; n.behaviours = old.behaviours; n.defaultState = old.defaultState; n.entryPosition = old.entryPosition; n.entryTransitions = old.entryTransitions; n.exitPosition = old.exitPosition; n.hideFlags = old.hideFlags; n.name = old.name; n.parentStateMachinePosition = old.parentStateMachinePosition; n.stateMachines = AconDeepcopy.DeepcopyChildStatemachine(old.stateMachines); n.states = old.states; return(n); }