public override void HandleFocus() { CupPlacement PlacementScript = CupPosition.GetComponent <CupPlacement>(); if (Cup.GetComponent <CupCore>().IsKnockedOver) { // Restore PlacementScript.Restore(); } else { // Randomize PlacementScript.Randomize(); } gameObject.GetComponent <Handle>().Unfocus(); }
public void Clean(CupPlacement Placement) { CleanTray.PutCups(); Destroy(Placement.cup.gameObject); }