Files
FueraDeEscala/Assets/Game Kit Controller/Scripts/Combat System/Melee Combat System/meleeWeaponAttackListInfoSocketEditor.cs
Robii Aragon fd87a6ffd5 add ckg
plantilla base para movimiento básico
2026-02-05 05:07:55 -08:00

43 lines
882 B
C#

using UnityEngine;
using System.Collections;
#if UNITY_EDITOR
using UnityEditor;
[CustomEditor (typeof(meleeWeaponAttackListInfoSocket))]
public class meleeWeaponAttackListInfoSocketEditor : Editor
{
meleeWeaponAttackListInfoSocket manager;
Vector3 curretPositionHandle;
Quaternion currentRotationHandle;
void OnEnable ()
{
manager = (meleeWeaponAttackListInfoSocket)target;
}
public override void OnInspectorGUI ()
{
DrawDefaultInspector ();
EditorGUILayout.Space ();
GUILayout.Label ("EDITOR BUTTONS", EditorStyles.boldLabel);
EditorGUILayout.Space ();
if (GUILayout.Button ("Copy Weapon Info To Template")) {
manager.copyWeaponInfoToTemplate (true);
}
EditorGUILayout.Space ();
if (GUILayout.Button ("Copy Template To Weapon Attack Info")) {
manager.copyTemplateToWeaponAttackInfo (true);
}
EditorGUILayout.Space ();
}
}
#endif