// copy-paste of the vanilla TileIn method, except without the sound.
        private IEnumerator tileInNoSound(int index, Image img, float delay)
        {
            yield return(delay);

            img.Visible  = true;
            img.Color    = Color.White;
            img.Position = new Vector2(index * 8 + 4, 4f);
            for (float time = 0f; time < 1f; time += Engine.DeltaTime / 0.25f)
            {
                yield return(null);

                img.Scale = Vector2.One * (1f + Ease.BounceOut(1f - time) * 0.2f);
            }
            img.Scale = Vector2.One;
        }
Пример #2
0
        private IEnumerator TileIn(int index, Image img, float delay)
        {
            yield return(delay);

            Audio.Play("event:/game/general/platform_return", Center);
            img.Visible  = true;
            img.Color    = Color.White;
            img.Position = new Vector2(index * 8 + 4, 4f);
            for (float time = 0f; time < 1f; time += Engine.DeltaTime / 0.25f)
            {
                yield return(null);

                img.Scale = Vector2.One * (1f + Ease.BounceOut(1f - time) * 0.2f);
            }
            img.Scale = Vector2.One;
        }