public void IsEmptyGet_NewPot_IsTrue() { // arrange var pot = new Pot(); // assert Assert.AreEqual(true, pot.IsEmpty(DateTime.UtcNow)); }
private void AttemptTrashContent(Pot pot) { //Debug.Log($"Attempt trash pot {pot.name}"); // check pot is tilted over plate (dot product with 'up' vectors) bool potTilted = Vector3.Dot(pot.transform.up, Vector3.up) < 0f; if (!potTilted || pot.IsEmpty()) { return; } // reset pot pot.Reset(); audioSource.PlayOneShot(trashedElementSound); }