Example #1
0
    private void WriteCode()
    {
        if (!scriptCode.text.EndsWith("\n") && scriptCode.text.Length > 1)
        {
            scriptCode.text += "\n";
        }
        scriptCode.text += OALScriptBuilder.GetInstance().AddCall(
            interactiveData.fromClass, interactiveData.fromMethod,
            OALProgram.Instance.RelationshipSpace.GetRelationshipByClasses(interactiveData.fromClass, interactiveData.toClass).RelationshipName, interactiveData.toClass,
            interactiveData.toMethod
            );

        interactiveData = new InteractiveData();
    }
Example #2
0
    public void StartAnimate()
    {
        InteractiveText.GetComponent <DotsAnimation>().currentText = "Select source class\n for call function\ndirectly in diagram\n.";
        scriptCode.text = "";
        OALScriptBuilder.GetInstance().Clear();
        InteractiveData interactiveData = new InteractiveData();

        isCreating = true;
        introScreen.SetActive(false);
        PanelInteractiveIntro.SetActive(true);
        PanelMethod.SetActive(false);
        PanelInteractive.SetActive(true);
        PanelInteractiveCompleted.SetActive(false);
        animationScreen.SetActive(true);
        mainScreen.SetActive(false);
    }