Esempio n. 1
0
        public void Initialize(BurstSprite s)
        {
            SpriteRenderer renderer = this.FetchComponent <SpriteRenderer>();

            burst_sprite    = s;
            animation_timer = new GameStopwatch(burst_sprite.GetTimeType()).StartAndGet();

            renderer.flipX = burst_sprite.IsFlipX();
            renderer.flipY = burst_sprite.IsFlipY();

            renderer.SetSortingLayerAndOrder(
                burst_sprite.GetSortingLayer(),
                burst_sprite.GetSortingOrder()
                );
        }
Esempio n. 2
0
 public AnimatedSpriteRenderer()
 {
     animation_time = new GameStopwatch();
 }
Esempio n. 3
0
 public GameAlarm(TimeType t)
 {
     timer = new GameStopwatch(t);
     Reset();
 }