public void CreateBuilding(GameObject prefab, HexCell cell) { GameObject g = Instantiate(prefab, cell.transform.position, Quaternion.identity); Building_Base building = g.GetComponent <Building_Base>(); building.OnCreated(cell, this); }
public void BuildingDestroy(Building_Base building) { Buildings.Remove(building); }