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.
20 lines
421 B
20 lines
421 B
using System.Collections; |
|
using System.Collections.Generic; |
|
using UnityEditor; |
|
using UnityEngine; |
|
|
|
[CustomEditor(typeof(Equipment))] |
|
public class EquipmentEditor : Editor |
|
{ |
|
public override void OnInspectorGUI() |
|
{ |
|
DrawDefaultInspector(); |
|
|
|
Equipment script = target as Equipment; |
|
|
|
if (GUILayout.Button($"아이템 장착")) |
|
{ |
|
script.Hit_Start(0.5f); |
|
} |
|
} |
|
}
|
|
|