GAM456-SpaceInvaders / SpaceInvaders / 4_GameObject / Ship / MoveState / ShipMoveBoth.cs
ShipMoveBoth.cs
Raw
using System;
using System.Diagnostics;

namespace SpaceInvaders
{
    public class ShipMoveBoth : ShipMoveState
    {
        public override void Handle(Ship pShip)
        {
            
        }

        public override void MoveLeft(Ship pShip)
        {
            pShip.x -= pShip.speed;
        }

        public override void MoveRight(Ship pShip)
        {
            pShip.x += pShip.speed;
        }
    }
}