private void changeState(TERRAINBUTTONSTATE _value)
{
if (m_terrainButtonState == _value) return;
Color _newColor;
if (_value == TERRAINBUTTONSTATE.ACTIVE)
{
_newColor = m_activeColor;
}
else
{
_newColor = m_inactiveColor;
}
StartCoroutine(changeObjectMaterialColor(_newColor));
m_terrainButtonState = _value;
}
//--------------------------------------------------------------------------------------