/// <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);
    }
Ejemplo n.º 2
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);
	}