private void RotateAround() { // cameraTransform.position = CM_MathTools.RotateAroud(behaviourSettings.CameraTarget.position, behaviourSettings.Distance , ref angle, behaviourSettings.Speed, Time.deltaTime); cameraTransform.position = CM_MathTools.RotateAroud(behaviourSettings.CameraTarget.position, behaviourSettings.Distance, angle, behaviourSettings.Speed); }
private void Update() { this.transform.position = CM_MathTools.RotateAroud(targetTransform.position, 10, angle, 0); }