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);
        }
예제 #3
0
        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);
        }
예제 #5
0
        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();
                }
            };
        }
예제 #6
0
 public override void Act(OTGCombatSMC _controller)
 {
     Debug.Log("This is test Action one");
 }
예제 #7
0
 public override void Act(OTGCombatSMC _controller)
 {
     Debug.Log("This is Action Two");
 }