Example #1
0
    public void ejectTerm(GameObject termCube)
    {
        RelationNotationTerm termCubeScript = termCube.GetComponent <RelationNotationTerm>();
        string insertedTerm = termCubeScript.getTerm();

        if (correctTerm == insertedTerm)
        {
            chainRuleNotationFormulaHandler.removeCorrectTerm();
        }
    }
Example #2
0
    public void insertTerm(GameObject termCube)
    {
        RelationNotationTerm termCubeScript = termCube.GetComponent <RelationNotationTerm>();
        string insertedTerm = termCubeScript.getTerm();

        if (correctTerm == insertedTerm)
        {
            correctAudio.Play();
            chainRuleNotationFormulaHandler.addCorrectTerm();
        }
        else
        {
            incorrectAudio.Play();
        }
    }