Esempio n. 1
0
        public PauseInputHandler(ITimeServiceInterface inTimeService)
            : base()
        {
            _timeService = inTimeService;

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

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

            _timeService.AddPauseListener(this);
        }