Exemple #1
0
	public void SetArrowDirection(TerrainSetType terrainSetType) {
		switch (terrainSetType) {
		case TerrainSetType.Flat:
			SetArrowFlat();
			break;
		case TerrainSetType.Uphill:
			SetArrowUp();
			break;
		case TerrainSetType.Downhill:
			SetArrowDown();
			break;
		default:
			Debug.LogWarning("invalid terrain set type: " + terrainSetType.ToString());
			break;
		}
	}
Exemple #2
0
	public void SetIcon(TerrainSetType terrainSetType) {
		switch (terrainSetType) {
		case TerrainSetType.Flat:
			icon.SetTerrainFlat();
			break;
		case TerrainSetType.Uphill:
			icon.SetTerrainUphill();
			break;
		case TerrainSetType.Downhill:
			icon.SetTerrainDownhill();
			break;
		default:
			Debug.LogWarning("invalid terrain set type: " + terrainSetType.ToString());
			break;
		}
	}