//TODO: make blueprint a interface or subclass // Use this for initialization void Start() { boardLayout = GetComponent <BoardLayout>(); boardLayout.initBoardLayout(); boardLayoutBgs = boardLayout.GetBoardLayoutBg(); boardColumns = boardLayoutBgs.GetLength(0); boardRows = boardLayoutBgs.GetLength(1); boardOffX = (boardColumns - 1) / 2f; boardOffY = (boardRows - 1) / 2f; blueprint = GetComponent <Blueprint>().getBlueprint(); //ValidateBoardLayout_withBlueprint(boardLayout, blueprint); cdTimer.gameObject.transform.localPosition = new Vector3(0f, boardOffY + 1f, 0f); cdTimer.gameObject.SetActive(false); InitBoardBG(); //InitUnits (); }