void OnEnable() { t = (PlayerAccessoriesList)target; getTarget = new SerializedObject(t); thisList = getTarget.FindProperty("accessories"); showPosition = new bool[t.accessories.Count + 1]; }
void OnEnable(){ t = (PlayerAccessoriesList)target; getTarget = new SerializedObject(t); thisList = getTarget.FindProperty("accessories"); showPosition = new bool[t.accessories.Count+1]; }
// Use this for initialization void Start () { pl=GetComponent<PlayerAccessoriesList>(); }