Files
FueraDeEscala/Assets/Game Kit Controller/Scripts/Combat System/Melee Combat System/meleeWeaponAttackListInfoSocketEditor.cs

43 lines
882 B
C#
Raw Normal View History

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