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; }
public void CameraShift(CameraHigh _type) { if (crossFading) { return; } curCameraStateType = _type; nextCtrl.target = currentCtrl.target; currentCtrl.Shift(_type); nextCtrl.Shift(_type); }