public void RequestTreatment() { treatmentPack = TreatmentManager.main.GetTreatment(); dialogueBox.Display(treatmentPack.data.GetRequestMessage()); GameObject g = Instantiate <GameObject>(treatmentPack.rep.snapZone, transform); g.GetComponent <SnapZoneSetter>().Set(treatmentPack.rep.treatmentObj, PerformNextTask); // Perform next task when treatment is received }
protected override void Awake() { base.Awake(); // Make packs packs = new TreatmentPack[database.availableTreatments.Length]; for (int i = 0; i < packs.Length; i++) { packs[i] = new TreatmentPack(database.availableTreatments[i], reps[i]); } }