Super Knight : Enter the Dungeon
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEditor;
|
|
|
|
|
|
|
|
|
|
//[CustomEditor(typeof(SlotSpin))]
|
|
|
|
|
//public class SlotSpinEditor : Editor
|
|
|
|
|
//{
|
|
|
|
|
// public override void OnInspectorGUI()
|
|
|
|
|
// {
|
|
|
|
|
// DrawDefaultInspector();
|
|
|
|
|
|
|
|
|
|
// SlotSpin script = target as SlotSpin;
|
|
|
|
|
|
|
|
|
|
// if (GUILayout.Button($"Spin Test - Block Type"))
|
|
|
|
|
// {
|
|
|
|
|
// List<Sprite> sprites = new List<Sprite>();
|
|
|
|
|
// foreach (BlockItem.Type enumItem in System.Enum.GetValues(typeof(BlockItem.Type)))
|
|
|
|
|
// {
|
|
|
|
|
// if (enumItem == BlockItem.Type.Orange)
|
|
|
|
|
// break;
|
|
|
|
|
// sprites.Add(SpriteManager.Instance.SpriteGet("common", $"box_{enumItem}_star".ToLower()));
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// script.OnInitialized(sprites, script.idxSlot, null);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//}
|