private void ReadStatePosition(StateNode stateNode) { Vector2 vector = this.activeStateMachine.GetStatePosition(stateNode.state); stateNode.position.x = vector.x; stateNode.position.y = vector.y; }
private void CreateNodeFromState(ChildAnimatorState state) { StateNode stateNode = this.CreateAndAddNode <StateNode>(string.Empty, state.position); stateNode.state = state.state; if (this.rootStateMachine.defaultState == state.state) { stateNode.color = Styles.Color.Orange; } this.m_StateNodeLookup.Add(state.state, stateNode); }
private void CreateNodeFromState(ChildAnimatorState state) { StateNode node = this.CreateAndAddNode <StateNode>("", state.position); node.state = state.state; if (this.rootStateMachine.defaultState == state.state) { node.color = UnityEditor.Graphs.Styles.Color.Orange; } this.m_StateNodeLookup.Add(state.state, node); }