﻿//----------------------------------------------------------------------------------
// GVRNavi | Garpix Virtual Reality Navigation
// Copyright (c) 2017 Garpix Ltd.
//
// Plugin Homepage: https://gvrnavi.garpix.com
// Author Homepage: https://garpix.com
// Support: support@garpix.com
// License: Asset Store Terms of Service and EULA
// License URI: See LICENSE file in the project root for full license information.
//----------------------------------------------------------------------------------

using UnityEditor;

namespace GVRNavi
{
    [CustomEditor(typeof(VRReticlePointer))]
    public class VRReticlePointerEditor : Editor
    {
        SerializedProperty type, spriteSizeMax; // mainCamera;

        void OnEnable()
        {
            type = serializedObject.FindProperty("type");
            spriteSizeMax = serializedObject.FindProperty("SpriteSizeMax");
            //mainCamera = serializedObject.FindProperty("mainCamera");
        }

        public override void OnInspectorGUI()
        {
            serializedObject.Update();
            EditorGUILayout.PropertyField(type);
            switch (type.enumValueIndex)
            {
                case 0: break;
                case 1:
                    EditorGUILayout.PropertyField(spriteSizeMax);
                    break;
                default: break;
            }
            //EditorGUILayout.PropertyField(mainCamera);
            serializedObject.ApplyModifiedProperties();
        }
    }
}