void Construction(GameObject whereToBuild, GameObject construction) { if (eManager.BuyBuilding(construction.GetComponent <BuildingProperties>().GetValue())) { whereToBuild.tag = construction.tag; PhotonNetwork.Instantiate(construction.name, whereToBuild.transform.position, whereToBuild.transform.rotation, 0); } }