private void AddEvent(PropertyType propertyType, List <float> timeTbl, StringGridRow row) { for (int i = 0; i < row.Strings.Length; i++) { if ((i != 0) && !row.IsEmptyCell(i)) { AnimationEvent event2 = new AnimationEvent(); if (propertyType == PropertyType.Texture) { string str; if (!row.TryParseCell <string>(i, out str)) { continue; } event2.set_functionName("ChangePattern"); event2.set_stringParameter(str); event2.set_time(timeTbl[i - 1]); } if (Application.get_isPlaying()) { this.Clip.AddEvent(event2); } } } }