public void Init(RunSignal runSignal, Settings.SignalDataMultipleContent content, Color fieldColor)
    {
        Color barColor = fieldColor;

        barColor.a = 0.2f;
        bar.color  = barColor;

        bgColor         = bg.color;
        this.fieldColor = fieldColor;
        speed           = Data.Instance.settings.multiplechoiceSpeed;
        this.runSignal  = runSignal;
        this.content    = content;
        field.text      = content.text;

        transform.localEulerAngles = Vector3.zero;
        transform.localPosition    = Vector3.zero;
        transform.localScale       = Vector3.one;

        value = initialValue;

        alphaValue  = 1;
        bgColor.a   = 1;
        bg.color    = bgColor;
        field.color = Color.white;
    }
Esempio n. 2
0
 public void MultiplechoiceSelected(Settings.SignalDataMultipleContent content)
 {
     state = states.RUNNING;
     Debug.Log("MultiplechoiceSelected: " + content.text);
     signalID = content.goto_id;
     Game.Instance.AddScore(content.score);
     Talk();
 }
Esempio n. 3
0
    public void MultiplechoiceSelected(Settings.SignalDataMultipleContent content)
    {
        state = states.DISPARADOR;
        print("multiplechoice text: " + content.text + " content.goto + " + content.goto_id + " distance: " + distance);

        List <RunSignal> all_to_remove = GetAllSignalsOfDisparador(disparadorID);

        if (all_to_remove.Count > 0)
        {
            all_to_remove[0].SetAnimOff();
        }

        signalID = content.goto_id;

        Game.Instance.AddScore(content.score);

        AddSignal();
    }
Esempio n. 4
0
 public void Clicked(Settings.SignalDataMultipleContent content)
 {
     manager.MultiplechoiceSelected(content);
 }
Esempio n. 5
0
 public void Clicked(Settings.SignalDataMultipleContent content)
 {
     state = states.SELECTED;
     manager.MultiplechoiceSelected(content);
 }