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() ); }
public AnimatedSpriteRenderer() { animation_time = new GameStopwatch(); }
public GameAlarm(TimeType t) { timer = new GameStopwatch(t); Reset(); }