Пример #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()
                );
        }
Пример #2
0
 public AnimatedSpriteRenderer()
 {
     animation_time = new GameStopwatch();
 }
Пример #3
0
 public GameAlarm(TimeType t)
 {
     timer = new GameStopwatch(t);
     Reset();
 }