When a level starts in my game, a randomly generated maze is displayed. The cam then moves correctly from a static starting point via
private void MoveToEntry()
var entryGameObject = LevelManager.Instance.CurrentMap.Waypoints.First().Transform.gameObject;
to the input object.
Sometimes it happens that the function never ends and during gameplay the input is permanently scrolled to.
My guess is that it happens when the distance is a bit bigger due to randomness and during the automatic movement to the input keys are already pressed by the player.
Can I query if FocusCameraOnGameObject is finished or register a callback (onFinish)?
(If possible i can block userinputs until FocusCameraOnGameObject finished)
Thanks a lot
Translated with www.DeepL.com/Translator (free version)