private void ChangeBedSprite(bool clean) { bool sheets = GetComponentInChildren <Sheets>(); spriteRenderer.sprite = clean ? cleanBed : dirtyBed; //sync with the bed monitor panel //true means clean bed, false means dirty bed pod.PassBool("clean_bed", !clean); pod.PassBool("wash_pajamas", !clean); }
private bool TransferItem() { Customer giver = customer; bool transferred = giver.DropItemTo(bed, dropoffItem); pod.PassBool("clean_bed", transferred); if (!transferred) { return(false); } Sheets sheets = bed.LeaveSheets() as Sheets; transferred = bed.ReceiveItem(new List <ItemTransferrable>() { sheets }); pod.PassBool("wash_pajamas", transferred); return(transferred); }
private void DeclareEnd() { end = true; pod.PassBool("reset_panel", false); }