Esempio n. 1
0
    public void Shift(CameraHigh _type)
    {
        switch (_type)
        {
        case CameraHigh.Low:
            distance = 14;
            y        = 35;
            break;

        case CameraHigh.Normal:
            distance = 18;
            y        = 40;
            break;

        case CameraHigh.High:
            distance = 24;
            y        = 45;
            break;

        default:
            break;
        }
        lastY        = y;
        aimY         = y;
        lastDistance = distance;
        aimDistance  = distance;
    }
Esempio n. 2
0
 public void CameraShift(CameraHigh _type)
 {
     if (crossFading)
     {
         return;
     }
     curCameraStateType = _type;
     nextCtrl.target    = currentCtrl.target;
     currentCtrl.Shift(_type);
     nextCtrl.Shift(_type);
 }