using UnityEngine; using UnityEditor; using System; using System.Collections; using System.Collections.Generic; namespace TBTK{ [CustomEditor(typeof(GameControl))] public class I_GameControlEditor : TBEditorInspector { private GameControl instance; private TurnControl tControl; private GlobalSettingDB gsDB; public override void Awake(){ base.Awake(); instance = (GameControl)target; tControl=instance.gameObject.GetComponent(); InitLabel(); } private string[] turnModeLabel; private string[] turnModeTooltip; private string[] cdTrackingLabel; private string[] cdTrackingTooltip; void InitLabel(){ int enumLength = Enum.GetValues(typeof(_TurnMode)).Length; turnModeLabel=new string[enumLength]; turnModeTooltip=new string[enumLength]; for(int i=0; i