private void Start() { _updateController = ServiceProvider.GetService <UpdateController>(); _updateController.AddUpdatable(ServiceProvider.GetService <CommandExecutor>()); _updateController.AddUpdatable(ServiceProvider.GetService <PlayerMovement>()); ServiceProvider.GetService <CommandExecutor>().EnqueueCommand( new LogCommand("UpdateBehaviour:: All core components initialized.", ELogType.Log)); }
private void Awake() { _updater = ServiceProvider.GetService <UpdateController>(); _updater.AddUpdatable(ServiceProvider.GetService <CommandExecutor>()); }