using UnityEngine; using UnityEditor; using System; using System.Collections; using System.Collections.Generic; namespace TBTK{ [CustomEditor(typeof(ShootObject))] [CanEditMultipleObjects] public class I_ShootObjectEditor : TBEditorInspector { private ShootObject instance; public override void Awake(){ base.Awake(); instance = (ShootObject)target; InitLabel(); } private string[] soTypeLabel; private string[] soTypeTooltip; void InitLabel(){ int enumLength = Enum.GetValues(typeof(ShootObject._Type)).Length; soTypeLabel=new string[enumLength]; soTypeTooltip=new string[enumLength]; for(int i=0; i