public void ToggleScale() { StateAccessor stateAccessor = this.GetComponent <StateAccessor>(); if (stateAccessor != null && !stateAccessor.AbleToTakeAnInteraction()) { return; } soundFX.Play(); oldZoom = currentZoom; currentZoom = NextScale(currentZoom); zoomChanging = true; if (customMessages != null) { customMessages.SendScaleChangeMessage((byte)currentZoom); } }
void OnSelect() { soundFX.Play(); ToggleZoom(); customMessages.SendScaleChangeMessage((byte)oldZoom); }