コード例 #1
0
    public void AddSpeedPoint(CameraPathControlPoint atPoint)
    {
        CameraPathSpeed cameraPathSpeed = base.get_gameObject().AddComponent <CameraPathSpeed>();

        cameraPathSpeed.set_hideFlags(2);
        base.AddPoint(cameraPathSpeed, atPoint);
        this.RecalculatePoints();
    }
コード例 #2
0
    public CameraPathSpeed AddSpeedPoint(CameraPathControlPoint curvePointA, CameraPathControlPoint curvePointB, float curvePercetage)
    {
        CameraPathSpeed cameraPathSpeed = base.get_gameObject().AddComponent <CameraPathSpeed>();

        cameraPathSpeed.set_hideFlags(2);
        base.AddPoint(cameraPathSpeed, curvePointA, curvePointB, Mathf.Clamp01(curvePercetage));
        this.RecalculatePoints();
        return(cameraPathSpeed);
    }