public void AssignStaff(Staff newStaff)
    {
        if (this.assignedStaff != null) return;

        newStaff.Assign(this);
        assignedStaff = newStaff;
        GetComponent<Collider>().enabled = false;
        newStaff.walker.MoveTo(staffPosition, false, OnStaffReady);
    }
Exemple #2
0
    public void AssignStaff(Staff newStaff)
    {
        if (!hasRoom)
            return;

        newStaff.Assign(this);
        staff.Add(newStaff);
        Transform freeBed = PickRandomBed();
        newStaff.walker.MoveTo(freeBed.position, true, () => { Rest(newStaff, freeBed); });
    }
    public void AssignStaff(Staff newStaff)
    {
        if (this.assignedStaff != null)
            return;

        newStaff.Assign(this);
	    AssetCatalog.instance.PlaySound("task");
	    assignedStaff = newStaff;
        assignedStaff.walker.MoveTo(staffPosition.position, false, OnStaffReady);
    }
 public void AssignStaff(Staff newStaff)
 {
     if (this.assignedStaff != null)
         return;
     
     newStaff.Assign(this);
     assignedStaff = newStaff;
     assignedStaff.walker.MoveTo(staffPosition.position, false, OnStaffReady);
 }