public void newOrder(TimeSpan lama, Table yangBeli) { if (lama != new TimeSpan(24, 0, 0)) { pesanan t = new pesanan(); t.mejaID = yangBeli; t.waktuKeluar = DateTime.Now.Add(lama); qOrder.Add(t); } }
public void aktifkanPelayan(pesanan pesene) { print("going to meja-->" + idxMejaWaypoint); jalan = true; busy = true; pelayanWaypoint.Add(pesene.mejaID.tableObject); gameObject.GetComponent <Animator>().StopPlayback(); gameObject.GetComponent <Animator>().Play("antarmakanan"); }