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