public void DisableState(string stateName, int layer = 0) { StateLayer stateLayer = GetStateLayer(layer); if (stateLayer != null) { stateLayer.DisableState(stateName); } }