Beispiel #1
0
    public void StartSchedule()
    {
        GameObject scheduleObject = scheduler.GetSchedule(currentScheduleIndex);

        if (scheduleObject != null)
        {
            StartCoroutine(scheduleHandler.Handle(scheduleObject));
        }
        else
        {
            DialogueManager.Instance.ReceiveCommandsFile("EmptySchedule");
        }
    }
Beispiel #2
0
        public void Create([FromBody] ScheduleAddCmd command)
        {
            var newSchedule = _scheduleHandler.Handle(command);

            _scheduleRepository.Add(newSchedule);
        }
Beispiel #3
0
        public void Add(ScheduleAddCmd command)
        {
            var newAmount = _commandHandler.Handle(command);

            Add(newAmount);
        }