void Start() { // Gets the script for the "Hexasphere" gameobject hexa = Hexasphere.GetInstance("Hexasphere"); // Apply world texture hexa.ApplyColors(worldColors); // Apply world heights to vertices hexa.ApplyHeightMap(heightMap, 0.1f, null, false); }
void Start() { // Gets the script for the "Hexasphere" gameobject hexa = Hexasphere.GetInstance("Hexasphere"); // Set background color to ignore those tiles seaColor = new Color32(0, 27, 82, 1); hexa.OnTileMouseOver += TileMouseOver; hexa.ApplyColors(worldTerritories); // Create a buffer for selecting tiles of the current territory currentTerritoryTiles = new List <int> (); // Start coroutine that cycles colors of the highlight StartCoroutine(CycleColors()); }