Exemple #1
0
            public static ShapeAlphaTween createAlphaTween(Shape shp, float end = 0, float time = 1, Action done = null, PennerDoubleAnimation.EquationType e = PennerDoubleAnimation.EquationType.Linear)
            {
                ShapeAlphaTween t = new ShapeAlphaTween(time, shp, end, done, e);

                TweenManager.Add(t);
                return(t);
            }
        public override void Init()
        {
            base.Init();
            _age = 0;

            try
            {
                LoadGraphics();
            }
            catch (LoadingFailedException e)
            {
                Console.WriteLine(e);
                throw;
            }

            Timer.Start(_introTime - 1.5f, () => ShapeAlphaTween.createAlphaTween(_overlay, 255, 1));
            Timer.Start(_introTime, () => End());
        }