コード例 #1
0
    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
    }
コード例 #2
0
ファイル: TreatmentManager.cs プロジェクト: paternostrox/VRTK
    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]);
        }
    }