Beispiel #1
0
        public PauseInputHandler(ITimeServiceInterface inTimeService)
            : base()
        {
            _timeService = inTimeService;

            ButtonResponses.Add(EInputKey.TogglePause, OnTogglePause);
        }
Beispiel #2
0
        protected void OnDestroy()
        {
            _timeService.RemovePauseListener(this);

            _timeService = null;
        }
Beispiel #3
0
        protected void Start()
        {
            _timeService = GameServiceProvider.CurrentInstance.GetService <ITimeServiceInterface>();

            _timeService.AddPauseListener(this);
        }