private void OnPlayerJump(On.Celeste.Player.orig_Jump orig, Celeste.Player self, bool particles, bool playSfx)
 {
     if (Settings.Enabled && self.InControl)
     {
         ApplyRules(self.Scene, "Jump");
     }
     orig(self, particles, playSfx);
 }
示例#2
0
文件: CCCCCC.cs 项目: leo60228/CCCCCC
 public static void Jump(On.Celeste.Player.orig_Jump orig_Jump, Player self, bool particles = true, bool playSfx = true)
 {
     // Console.WriteLine("PlayerJump");
     if (!Settings.Enabled)
     {
         orig_Jump(self, particles, playSfx);
     }
 }
示例#3
0
        private static void Player_Jump(On.Celeste.Player.orig_Jump orig, Player self, bool particles, bool playSfx)
        {
            Logger.Log("ExampleMod", "Just before Player.Jump()");

            // We can call the original method at any point in the hook.
            orig(self, particles, playSfx);

            Logger.Log("ExampleMod", "Just after Player.Jump()");
        }
示例#4
0
 private void modJump(On.Celeste.Player.orig_Jump orig, Celeste.Player self, bool particles, bool playSfx)
 {
     orig(self, particles, playSfx);
     forceUltra(self);
 }