コード例 #1
0
            private static object FixupStateRefs(object obj, object stateMachine)
            {
                if (obj.GetType() == typeof(StateRef))
                {
                    StateRef StateRef = (StateRef)obj;
                    StateRef.SetParentStatemachine((StateMachine)stateMachine);
                    return(StateRef);
                }

                return(obj);
            }
コード例 #2
0
            private static object FixupStateRefs(object obj, object stateMachine)
            {
                if (obj.GetType() == typeof(StateRef))
                {
                    StateRef StateRef = (StateRef)obj;
                    StateRef.SetParentStatemachine((StateMachine)stateMachine);
                    return(StateRef);
                }
#if UNITY_EDITOR
                else if (obj.GetType() == typeof(LocalisedStringRef))
                {
                    LocalisedStringRef localisedStringRef = (LocalisedStringRef)obj;
                    localisedStringRef.SetAutoNameParentName(((StateMachine)stateMachine)._name);
                    return(localisedStringRef);
                }
#endif
                return(obj);
            }