예제 #1
0
        public static Thought MakeThought(ThoughtDef def)
        {
            Thought thought = (Thought)Activator.CreateInstance(def.ThoughtClass);

            thought.def = def;
            thought.Init();
            return(thought);
        }
예제 #2
0
        public static Thought MakeThought(ThoughtDef def)
        {
            Thought obj = (Thought)Activator.CreateInstance(def.ThoughtClass);

            obj.def = def;
            obj.Init();
            return(obj);
        }