//[MenuItem("uSquid/BehindTheCurtain/Regenerate UnityObject.cs")]
        public static void Generate()
        {
            var messages = GetMessagesFromDocs();

            var UnityObjectBuilderBuilder = new UnityObjectBuilder();
            UnityObjectBuilderBuilder.AppendUnityObjectClass(messages);

            File.WriteAllText(string.Format("{0}/uSquid/UnityObject/MonoBehaviourMessages.cs", Application.dataPath), UnityObjectBuilderBuilder.ToString());

            var uBehaviourBuilder = new UnityObjectBuilder();
            uBehaviourBuilder.AppendUnityObjectBehaviour(messages);

            File.WriteAllText(string.Format("{0}/uSquid/UnityObject/UnityObjectBehaviour.cs", Application.dataPath), uBehaviourBuilder.ToString());
        }
Beispiel #2
0
        //[MenuItem("uSquid/BehindTheCurtain/Regenerate UnityObject.cs")]
        public static void Generate()
        {
            var messages = GetMessagesFromDocs();

            var UnityObjectBuilderBuilder = new UnityObjectBuilder();

            UnityObjectBuilderBuilder.AppendUnityObjectClass(messages);

            File.WriteAllText(string.Format("{0}/uSquid/UnityObject/MonoBehaviourMessages.cs", Application.dataPath), UnityObjectBuilderBuilder.ToString());

            var uBehaviourBuilder = new UnityObjectBuilder();

            uBehaviourBuilder.AppendUnityObjectBehaviour(messages);

            File.WriteAllText(string.Format("{0}/uSquid/UnityObject/UnityObjectBehaviour.cs", Application.dataPath), uBehaviourBuilder.ToString());
        }