private ShipManager() { this.shipReadyState = new ShipReadyState(); this.shipMissileFlyingState = new ShipMissileFlyingState(); this.shipEndState = new ShipEndState(); this.cannonShip = null; this.missile = null; }
private ShipMan()//:base(1,1) { // Store the states ReadyState = new ShipReadyState(); FlyingState = new ShipMissleFlyingState(); DeadState = new ShipDeadState(); // set active Ship = null; BulletLeaf = null; }