public void Reset() { Frame = 0; this.Timer = new Timer(); }
private void Initilize(SodaGuy sodaGuy, bool isAlive) { this.Position = sodaGuy.Position + sodaGuy.Center; this.Alive = isAlive; this.AttackSprite = this.IdleSprite = sodaGuy.SodaCanSprite; this.Direction = sodaGuy.Direction; this.SodaGuy = sodaGuy; this.Velocity = new Vector2(Enemy.MAX_SPEED * sodaGuy.Direction.GetLateralDirectionSign(), MAX_JUMP_HEIGHT); this.JumpHeight = MAX_JUMP_HEIGHT; this.DeathAction = (GameObject gameObject) => { }; this.Timer = new Timer(); }