コード例 #1
0
    void OnMouseUp()
    {
        //When we release reset button, Button style is changed to inactive.
        VariableScript.Background_Released.SetActive(true);
        VariableScript.Text_Released.SetActive(true);
        VariableScript.Background_Pressed.SetActive(false);
        VariableScript.Text_Pressed.SetActive(false);

        //When we release reset button, graph is reset.
        VariableScript.METABOLIZER_ID    = -1;
        VariableScript.HERBAL_DRUG_COUNT = 0;

        VariableScript.SetTopBar(-1);
        VariableScript.ResetLeftBar();
        VariableScript.ShowGraphLegend(-1);
        GraphScript.RemoveAllGraph();
    }