Example #1
0
 void Update()
 {
     if (GameManager.gameStage == GameStage.Game)
     {
         float delta = Input.GetAxis("Mouse ScrollWheel");
         if (delta != 0 && !GameScene.eventSystem.IsPointerOverGameObject())
         {
             Player.UpdateCamera(delta);
         }
     }
     soundPlayer.Update();
 }
Example #2
0
 protected override void Update()
 {
     soundPlayer.Update();
     base.Update();
 }