public Industrise(Vector2Int _pos, Map _mapData, IndustriseData _data) { MasterPos = _pos; industriseData = _data; MakeBuilding(_mapData); SetInputeOutpure(); }
public Industrise(Vector2Int _pos, Map _mapData) { MasterPos = _pos; IndustriseData[] allIndustriseData = FIleSys.GetAllInstances <IndustriseData>(); industriseData = allIndustriseData[Random.Range(0, allIndustriseData.Length)]; MakeBuilding(_mapData); materialProductionRatio = Random.Range(0.8f, 3f); SetInputeOutpure(); }