/// <summary> /// Verifica se playerJump contém um método de salto. /// </summary> /// <param name="which">0 = <see cref="GroundJump"/>, 1 = <see cref="WallJump"/></param> /// <returns></returns> private bool ContainsMethod(int which) { bool tmp = false; if (playerJump == null) { return(false); } //Verifica cada método em playerJump e verifica se o método corresponde. foreach (PlayerJump method in playerJump.GetInvocationList()) { if ((method == WallJump && which == 1) || (method == GroundJump && which == 0)) { tmp = true; } } return(tmp); }