Beispiel #1
0
        protected override bool OnStart()
        {
            if (player != null)
            {
                return(false);
            }

            collection.CurrentBeatmap.Value.Song.Looping = false;

            LoadComponentAsync(player = new Play.Play(), l =>
            {
                if (this.IsCurrentScreen())
                {
                    this.Push(player);
                }
            });

            return(true);
        }
Beispiel #2
0
        public override void OnResuming(IScreen last)
        {
            player = null;

            base.OnResuming(last);
        }