Beispiel #1
0
    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);
        }
    }
Beispiel #2
0
 void OnSelect()
 {
     soundFX.Play();
     ToggleZoom();
     customMessages.SendScaleChangeMessage((byte)oldZoom);
 }