示例#1
0
        private static IEnumerator LookRoutine(On.Celeste.Lookout.orig_LookRoutine orig, Celeste.Lookout self, Celeste.Player player)
        {
            SteamWall steamWall = self.Scene.Tracker.GetEntity <SteamWall>();

            if (steamWall != null)
            {
                steamWall.Halted = true;
            }
            yield return(orig(self, player));

            if (steamWall != null)
            {
                steamWall.Halted = false;
            }
        }
        private static IEnumerator LookRoutine(On.Celeste.Lookout.orig_LookRoutine orig, Celeste.Lookout self, Celeste.Player player)
        {
            SteamWall steamWall = self.Scene.Tracker.GetEntity <SteamWall>();

            if (steamWall != null)
            {
                steamWall.Halted = true;
            }

            IEnumerator enumerator = orig(self, player);

            while (enumerator.MoveNext())
            {
                yield return(enumerator.Current);
            }

            if (steamWall != null)
            {
                steamWall.Halted = false;
            }
        }
        private IEnumerator OnLookoutLookRoutine(On.Celeste.Lookout.orig_LookRoutine orig, Celeste.Lookout self, Celeste.Player player)
        {
            IEnumerator enumerator = orig(self, player);

            while (enumerator.MoveNext())
            {
                yield return(enumerator.Current);
            }
            if (Settings.Enabled && player != null)
            {
                doTaxWipe = true;
                player.Die(-Vector2.UnitY);
            }
        }