private void DetermineAvailableCombatStates(OTGCombatSMC _selectedCombatant) { AvailableStates.Add((OTGCombatState)SObj_InitialState.targetObject); SerializedProperty transitions = SObj_InitialState.FindProperty("m_stateTransitions"); GetStatesFromTransition(transitions); }
private void DetermineCombatStateObj(OTGCombatSMC _selectedCombatant) { SerializedObject cObj = new SerializedObject(_selectedCombatant); SProp_InitialState = cObj.FindProperty("m_startingState"); SObj_InitialState = new SerializedObject(SProp_InitialState.objectReferenceValue); }
public void SetSelectedCharacter(OTGCombatSMC _selection) { SelectedCharacter = _selection; SelectedCharacterSObject = new SerializedObject(SelectedCharacter); GetStartingState(); GetCharacterHandlerData(); GetHandlerDataProperties(); GetCharacterSavedGraph(); StateTree = new CharacterStateTree(StartingState); }
public void SetViewData(OTGCombatSMC _selectedCombatant, CombatantAnimationView _animView) { AvailableStates.Clear(); DetermineCombatStateObj(_selectedCombatant); DetermineAvailableCombatStates(_selectedCombatant); DetermineSelectedAnimationClip(); _animView.OnSelectionMade(this); }
private void ShowListView() { m_charListView.makeItem = () => new Label(); m_charListView.bindItem = (element, i) => (element as Label).text = m_viewData.CharactersInScene[i].name; m_charListView.itemsSource = m_viewData.CharactersInScene; m_charListView.itemHeight = 16; m_charListView.selectionType = SelectionType.Single; m_charListView.onSelectionChange += (enumerable) => { foreach (Object candidate in enumerable) { OTGCombatSMC combatant = candidate as OTGCombatSMC; m_viewData.SetSelectedCharacter(combatant); m_currentSubView.OnCharacterSelected(); } }; }
public override void Act(OTGCombatSMC _controller) { Debug.Log("This is test Action one"); }
public override void Act(OTGCombatSMC _controller) { Debug.Log("This is Action Two"); }