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(Movement))]
|
|
|
|
|
public class MovementEditor : Editor
|
|
|
|
|
{
|
|
|
|
|
Vector3 pos = Vector3.zero;
|
|
|
|
|
public override void OnInspectorGUI()
|
|
|
|
|
{
|
|
|
|
|
DrawDefaultInspector();
|
|
|
|
|
|
|
|
|
|
Movement script = target as Movement;
|
|
|
|
|
if (script.TEST)
|
|
|
|
|
{
|
|
|
|
|
//EditorGUI.Vector3Field
|
|
|
|
|
pos = EditorGUILayout.Vector3Field("이동 위치", pos);
|
|
|
|
|
if (GUILayout.Button($"이동 시작"))
|
|
|
|
|
{
|
|
|
|
|
script.TargetSetting(pos);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|