void OnEnable() { t = (AnimationEventBasedSound)target; getTarget = new SerializedObject(t); thisList = getTarget.FindProperty("animEvent"); showPosition = new bool[t.animEvent.Count + 1]; }
void OnEnable(){ t = (AnimationEventBasedSound)target; getTarget = new SerializedObject(t); thisList = getTarget.FindProperty("animEvent"); showPosition = new bool[t.animEvent.Count+1]; }