public void AddSpeedPoint(CameraPathControlPoint atPoint) { CameraPathSpeed cameraPathSpeed = base.get_gameObject().AddComponent <CameraPathSpeed>(); cameraPathSpeed.set_hideFlags(2); base.AddPoint(cameraPathSpeed, atPoint); this.RecalculatePoints(); }
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); }