Пример #1
0
 public void SetView(Views.BaseView view, Quaternion?def = null)
 {
     if (view is Views.Orthogonal ortho)
     {
         rotation.Set(ortho.direction);
     }
     else if (def.HasValue)
     {
         rotation.Set(def.Value);
     }
 }
Пример #2
0
 public void UpdateDist(float delta)
 {
     delta *= -Config.Input.Mouse.camScrollSpeed;
     dist.Set(Mathf.Clamp(dist.dest + delta, nearDist, farDist));
 }