Ejemplo n.º 1
0
    private void Awake()
    {
        arityEvent.AddRemovableListener(i => arity = i, this);
        button.onClick.AddListener(Cast);
        SkipButton.onClick.AddListener(() =>
        {
            StartCoroutine(Skip());
            effectAudioEvent.Invoke(15); //Forward Skip Sound
        });

        StepBackButton.onClick.AddListener(StepBack);
        SkipBackButton.onClick.AddListener(() =>
        {
            StartCoroutine(SkipBack());
            effectAudioEvent.Invoke(17); //Backward Skip Sound
        });
        StopButton.onClick.AddListener(() =>
        {
            effectAudioEvent.Invoke(0); //Button Press Sound
            UnCast();
            Destroy(variable_symbols_here.GetComponentInChildren <HighlightParen>().gameObject);
            arityEvent.Invoke(arity);

            Destroy(proposal.GetComponentInChildren <LayoutTracker>().gameObject);
            proposal.Initialize(oldterm);
        });
        evalmode.val = false;
    }
Ejemplo n.º 2
0
    // ===== Functions =====

    // Init
    private void Awake()
    {
        onLevelLoadArity.AddRemovableListener(onLevelWasLoaded, this);
        if (OnCastSpell)
        {
            OnCastSpell.AddRemovableListener(_ => CastSpell(), this);
        }
    }
Ejemplo n.º 3
0
 // Start is called before the first frame update
 void Awake()
 {
     lambda.AddRemovableListener(createTarget, this);
     arrityEvent.AddRemovableListener(i => arrity = i, this);
 }