void OnEnable()
        {
            if (serializedObject == null)
            {
                return;
            }

            fov        = serializedObject.targetObject as FOVCollider2D;
            length     = serializedObject.FindProperty("Length");
            baseSize   = serializedObject.FindProperty("BaseSize");
            fovAngle   = serializedObject.FindProperty("FOVAngle");
            resolution = serializedObject.FindProperty("Resolution");
        }
 void Awake()
 {
     mf  = GetComponent <MeshFilter>();
     fov = GetComponent <FOVCollider2D>();
 }