public void AddBase(int q, int r, GameObject playerBase) { Structure currBase = playerBase.GetComponent <Structure>(); currBase.SetCoords(q, r); currBase.SetPlayer(boardState.GetNodeOwner(q, r)); currBase.boardState = this.boardState; structures[new Vector2Int(q, r)] = currBase; boardState.AddStructure(q, r); }