mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 11:45:09 +00:00
15 lines
525 B
C#
15 lines
525 B
C#
|
using UnityEngine;
|
||
|
using UnityEditor;
|
||
|
using SatorImaging.UnitySourceGenerator.Editor;
|
||
|
|
||
|
public class CreateMinigameScriptTemplate
|
||
|
{
|
||
|
[MenuItem("Assets/Heaven Studio/Create Minigame Script From Template", priority = 0)]
|
||
|
public static void CreateMinigameScript()
|
||
|
{
|
||
|
ProjectWindowUtil.CreateScriptAssetFromTemplateFile("Assets/Editor/ScriptTemplates/MinigameScriptTemplate.txt", "NewMinigame.cs");
|
||
|
AssetDatabase.Refresh();
|
||
|
USGUtility.ForceGenerateByType(typeof(HeavenStudio.Minigames));
|
||
|
}
|
||
|
}
|