Example #1
0
        public override System.Collections.IEnumerator Run()
        {
            yield return(0);

            InternalEditorUtility.OpenFileAtLineExternal(CreateGameLogicClass.LogicClassFile(), 0);
            yield return(0);
        }
        public override System.Collections.IEnumerator Run()
        {
            yield return(0);

            Game instance = GameObject.FindObjectOfType <Game>();

            TextAsset ta = (TextAsset)AssetDatabase.LoadAssetAtPath(CreateGameLogicClass.LogicClassFile(), typeof(TextAsset));

            instance.SetLogicImplementation(ta);
            EditorUtility.SetDirty(instance);
            yield return(0);
        }