public override void OnInspectorGUI() { ShopListCreator shopBall = (ShopListCreator)target; DrawDefaultInspector(); if (GUILayout.Button("Generate")) { shopBall.Generate(); } }
private void Awake() { Instance = GetComponent <ShopListCreator>(); }