private void UpdateGrowthTile(MapGrowth newGrowth) { float startTime = Time.realtimeSinceStartup; MapWorld.SetGrowth(newGrowth); Debug.Log("Time(SetTile): " + ((Time.realtimeSinceStartup - startTime) * 1000f)); UpdateGrowthTilemap(newGrowth); Debug.Log("Time(UpdateGrowthTilemap): " + ((Time.realtimeSinceStartup - startTime) * 1000f)); }
private void UpdateGrowthTilemap(MapGrowth newGrowth) { growthTilemap.SetTile(new Vector3Int(newGrowth.locationX, newGrowth.locationY, 0), tileForGrowth[newGrowth.growthCode]); }