Exemple #1
0
    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));
    }
Exemple #2
0
 private void Awake()
 {
     _updater = ServiceProvider.GetService <UpdateController>();
     _updater.AddUpdatable(ServiceProvider.GetService <CommandExecutor>());
 }