private void Start() { //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0026: Expected O, but got Unknown //IL_004d: Unknown result type (might be due to invalid IL or missing references) cameraAnim.GetComponent <AnimationEventProxy>().listener = this; int i = 0; for (int num = playerAnimTimings.Length; i < num; i++) { AnimationEvent val = new AnimationEvent(); val.set_functionName("OnEventInt"); val.set_intParameter(i); val.set_time(playerAnimTimings[i]); cameraAnim.get_clip().AddEvent(val); } }