1234567891011121314151617181920212223242526272829 |
- using UnityEngine;
- using UnityEditor;
- namespace HQFPSWeapons
- {
- [CustomPropertyDrawer(typeof(MeleeWeapon.SwingData))]
- public class SwingDataDrawer : CopyPasteBase<MeleeWeapon.SwingData>
- {
- private const string menuName = "Swing Data";
- [MenuItem("CONTEXT/" + menuName + "/Copy " + menuName)]
- private static void Copy()
- {
- DoCopy();
- }
- [MenuItem("CONTEXT/" + menuName + "/Paste " + menuName)]
- private static void Paste()
- {
- DoPaste();
- }
- public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
- {
- base.OnGUI(position, property, label, menuName);
- }
- }
- }
|