public CharacterControlsService(Character mainCharacter, UpdaterService updater)
        {
            _mainCharacter = mainCharacter;
            _updater       = updater;

            _updater.AddUpdater(Update);
        }
        public CharacterPhysicsService(PhysicSettingsData physicSettingsData, UpdaterService updater)
        {
            _physicSettingsData = physicSettingsData;
            _updater            = updater;

            _updater.AddUpdater(Update);
        }
Example #3
0
        public FailDetectorService(SessionService session, CharacterPhysicsService physicsService,
                                   CharactersSettingsData charactersSettings, UpdaterService updater)
        {
            _session            = session;
            _updater            = updater;
            _charactersSettings = charactersSettings;
            _physicsService     = physicsService;

            _updater.AddUpdater(Update);
        }