public List <TrafficMessage> BuyingTickets(System.Object value) { int id = (int)value; Debug.Log("id " + id); TicketsOperaton ticket_operation = new TicketsOperaton(); int ticketid = ticket_operation.BuyTickets(id); if (ticketid == 0) { Lucky.LuckyUtils.Log("ticket id error"); return(null); } RoutineTicket ticket = ticket_operation.GetTicketByTickedId(ticketid); Lucky.LuckyUtils.Log("ticket " + ticket.GetRoutineStartNode() + " " + ticket.GetBeginTime() + " " + ticket.GetTicketId()); TimeManager.instance.AddGo(new TicketParam(ticket)); Lucky.LuckyUtils.Log("buy ticket id " + ticket.GetTicketId() + " routtine id" + ticket.GetRoutineId()); return(new List <TrafficMessage>()); }