Beispiel #1
0
 protected override void OnRightClick(OnEditionRightClick e)
 {
     if (baseTransform.position != Vector3.zero && _controlEnable)
     {
         _actualPolar -= Mathf.Clamp(Camera.main.ScreenToViewportPoint(Input.mousePosition).x - 0.5f, -1 * rotationSpeed * Time.deltaTime, 1 * rotationSpeed * Time.deltaTime);
     }
 }
    protected override void OnRightClick(OnEditionRightClick e)
    {
        x += e.posX * xSpeed * distance * 0.02f;
        y -= e.posY * ySpeed * 0.02f;

        y = ClampAngle(y, yMinLimit, yMaxLimit);
    }
Beispiel #3
0
 protected virtual void OnRightClick(OnEditionRightClick e)
 {
 }