Example #1
0
    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);
    }
Example #2
0
    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);
    }
Example #3
0
 private void DeclareEnd()
 {
     end = true;
     pod.PassBool("reset_panel", false);
 }