[根据类型切换相机类型]
//相机类型
public enum CameraType{
Orthographic, Perspective
}
//相机切换
public void ChangeCameraType(CameraType type, Camera cam){
//切换为"正交相机".
if(type == CameraType.Orthographic){
cam.orthographic = true;
}
//切换为"透视相机"
else{
cam.orthographic = false;
}
//重置相机矩阵
cam.ResetProjectionMatrix();
}