private void Init(IAvatarPowerState state, IAvatarVerticalState action, IAvatarHorizontalState orientation) { TextureType = typeof(Avatar); CollisionBox.ColorType = typeof(Avatar); PowerState = state; VerticalState = action; HorizontalState = orientation; Sprite = new AvatarSprite(this); }
public Avatar(TileMap level, Vector2 initPos, IAvatarPowerState state, IAvatarVerticalState action, IAvatarHorizontalState orientation) : base(level, initPos) { Init(state, action, orientation); }