Exemple #1
0
        public static void ShowBadge(Badge badge)
        {
            var banner = BadgeBanner.Show(badge.Image);

            banner.Camera = uiCamera;
            banner.X      = Align(banner.Camera, (banner.Camera.CameraWidth - banner.Width) / 2);
            banner.Y      = Align(banner.Camera, (banner.Camera.CameraHeight - banner.Height) / 3);
            Game.Scene.Add(banner);
        }