public void StartSchedule() { GameObject scheduleObject = scheduler.GetSchedule(currentScheduleIndex); if (scheduleObject != null) { StartCoroutine(scheduleHandler.Handle(scheduleObject)); } else { DialogueManager.Instance.ReceiveCommandsFile("EmptySchedule"); } }
public void Create([FromBody] ScheduleAddCmd command) { var newSchedule = _scheduleHandler.Handle(command); _scheduleRepository.Add(newSchedule); }
public void Add(ScheduleAddCmd command) { var newAmount = _commandHandler.Handle(command); Add(newAmount); }