Esempio n. 1
0
    void Update()
    {
        if (Keyboard.current.numpad8Key.wasPressedThisFrame)
        {
            ppwz.ZoomIn();
        }

        if (Keyboard.current.numpad9Key.wasPressedThisFrame)
        {
            ppwz.ZoomOut();
        }
    }
Esempio n. 2
0
 void Update()
 {
     if (UnityEngine.Input.mouseScrollDelta.y != 0)
     {
         if (UnityEngine.Input.mouseScrollDelta.y > 0)
         {
             ppwz.ZoomIn();
         }
         else
         {
             ppwz.ZoomOut();
         }
     }
 }