Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public Avatar(TileMap level, Vector2 initPos, IAvatarPowerState state, IAvatarVerticalState action, IAvatarHorizontalState orientation) : base(level, initPos)
 {
     Init(state, action, orientation);
 }