using UnityEngine; using UnityEngine.Purchasing; namespace UnityEditor.Purchasing { /// /// Customer Editor class for the IAPButton. This class handle how the IAPButton should represent itself in the UnityEditor. /// //disable Warning CS0618 IAPButton is deprecated, please use CodelessIAPButton instead. #pragma warning disable 0618 [CustomEditor(typeof(IAPButton))] [CanEditMultipleObjects] public class IAPButtonEditor : AbstractIAPButtonEditor { /// /// Event trigger when IAPButton is enabled in the scene. /// public void OnEnable() { OnEnableInternal(); } /// /// Event trigger when trying to draw the IAPButton in the inspector. /// public override void OnInspectorGUI() { OnInspectorGuiInternal(); } } }