/// <summary>
    /// Go to reagent info according to info in the button
    /// </summary>
    /// <param name="formula">The reagent formula.</param>
    public void OpenReagent(string formula)
    {
        TabletController tc = GetComponentInParent <TabletController> ();

        tc.ReagentInfoState.GetComponent <NewReagentInfoState> ().SetValues(formula);
        tc.ChangeTabletState((int)TabletSubstate.ReagentInfoState);
    }
    public override void StartUsing(VRTK_InteractUse usingObject)
    {
        base.StartUsing(usingObject);
        TabletController tablet = GameObject.Find(string.Format("Tablet({0})", usingObject.transform.parent.name)).GetComponent <TabletController>();

        tablet.setObjectType("Pallet");
        tablet.setLabel1("ID");
        tablet.setValue1(details.MaterialId);
    }
示例#3
0
	/// <summary>
	/// Completes the stage, marking the journal items as done.
	/// </summary>
	/// <param name="i">The stage index.</param>
	public void CompleteStage(int i) {
		TabletController tc = GetComponentInParent<TabletController> ();

		if (this.stages == null) {
			Initialize ();
		}
		if (!tc.JournalState.GetComponent<JournalState> ().Contains (stages [i])) {
			tc.JournalState.GetComponent<JournalState> ().LoadValues (stages [i]);
		}
		tc.JournalState.GetComponent<JournalState> ().MarkAsDone (stages[i]);
	}
示例#4
0
	/// <summary>
	/// Opens the journal.
	/// </summary>
	/// <param name="stage">Instance of stage.</param>
	private void OpenJournal(Stage stage) {
		TabletController tc = GetComponentInParent<TabletController> ();
		tc.JournalState.GetComponent<JournalState> ().SetValues (stage);
		tc.ChangeTabletState((int)TabletSubstate.JournalState);
	}