using System.Collections.Generic; using UnityEngine; public class LevelSelector : WPFMonoBehaviour { public GameObject m_levelButtonPrefab; public GameObject m_levelJokerButtonPrefab; public int m_levelsPerPage = 15; [SerializeField] private int m_episodeLevelsGameDataIndex; [SerializeField] private Transform m_startingCutsceneButton; [SerializeField] private Transform m_endingCutsceneButton; [SerializeField] private GameObject m_leftScroll; [SerializeField] private GameObject m_rightScroll; [SerializeField] private GameObject m_pageDot; private float m_buttonOffset; private List m_levels = new List(); private List m_dotsList = new List(); private int m_page; private int m_pageCount; private Vector2 m_initialInputPos; private Vector2 m_lastInputPos; private ButtonGrid m_buttonGrid; private float m_leftDragLimit; private float m_rightDragLimit; private bool m_interacting; private int m_currentScreenWidth; private Camera m_hudCamera; private bool m_isIapOpen; public List Levels { get { return m_levels; } set { m_levels = value; } } public string OpeningCutscene { get { return m_startingCutsceneButton.GetComponent