void Awake() { // If no other MonoBehaviour has requested Instance in an Awake() call executing // before this one, then we are it. There is no reason to search for an object if (_instance == null) { _instance = this as $safeitemname$; _instance.Initialize(); } }
static void Open$safeitemname$() { var window = EditorWindow.GetWindow<$safeitemname$>(); window.titleContent = new GUIContent("$safeitemname$"); window.Initialize(); window.Show(); }
public Task Execute($safeitemname$Input input) { // TODO return(Task.FromResult(0)); }
// Make sure Instance isn't referenced anymore void OnApplicationQuit() { _instance = null; }
public void Merge ($safeitemname$ Group) { // 在此处放置代码 }
public void Merge($safeitemname$ Group) { // $PutYourCodeHereComment$ }