Пример #1
0
    public void AddFOV(CameraPathControlPoint atPoint)
    {
        CameraPathFOV cameraPathFOV = base.get_gameObject().AddComponent <CameraPathFOV>();

        cameraPathFOV.FOV  = this.defaultFOV;
        cameraPathFOV.Size = this.defaultSize;
        cameraPathFOV.set_hideFlags(2);
        base.AddPoint(cameraPathFOV, atPoint);
        this.RecalculatePoints();
    }
Пример #2
0
    public CameraPathFOV AddFOV(CameraPathControlPoint curvePointA, CameraPathControlPoint curvePointB, float curvePercetage, float fov, float size)
    {
        CameraPathFOV cameraPathFOV = base.get_gameObject().AddComponent <CameraPathFOV>();

        cameraPathFOV.set_hideFlags(2);
        cameraPathFOV.FOV  = fov;
        cameraPathFOV.Size = size;
        cameraPathFOV.Size = this.defaultSize;
        base.AddPoint(cameraPathFOV, curvePointA, curvePointB, curvePercetage);
        this.RecalculatePoints();
        return(cameraPathFOV);
    }