private void BuildNewStage(List<UnitStats> playerArmy)
 {
     GameObject g = Instantiate(StagePrefab) as GameObject;
     currentStage = g.GetComponent<StageManager>();
     currentStage.Build(playerArmy);
     BoundCameraToBoard b = mainCamera.GetComponent<BoundCameraToBoard>();
     if (b == null) {
         b = mainCamera.gameObject.AddComponent<BoundCameraToBoard>();
     }
     b.stage = currentStage.gameObject;
 }
    private void BuildNewStage(List <UnitStats> playerArmy)
    {
        GameObject g = Instantiate(StagePrefab) as GameObject;

        currentStage = g.GetComponent <StageManager>();
        currentStage.Build(playerArmy);
        BoundCameraToBoard b = mainCamera.GetComponent <BoundCameraToBoard>();

        if (b == null)
        {
            b = mainCamera.gameObject.AddComponent <BoundCameraToBoard>();
        }
        b.stage = currentStage.gameObject;
    }