public ShipConfigurationBuilder(ShipGrid grid) { this.grid = grid; grid.OnComponentDestroyed += Grid_OnComponentDestroyed; grid.OnComponentMove += Grid_OnComponentMove; grid.OnDamageAndShield += Grid_OnDamageAndShield; }
public void Start() { grid = new ShipGrid(); grid.AddComponent(component1, new IntPair(0, 0)); //builder = new ShipConfigurationBuilder(grid, reader); //builder.DeployShipConfiguration(builder.BuildShipConfiguration(), false); Debug.Log("Pew"); grid.TakeDamage(Facing.LEFT); Debug.Log("Pew"); grid.TakeDamage(Facing.LEFT); Debug.Log("Pew"); grid.TakeDamage(Facing.LEFT); //Debug.Log("Adjacent to Component 1: " + grid.GetAdjacentComponents(component1)[0].Type.identifier); }