/// <summary>
 /// Metodo richiamato una volta nel primo frame.
 /// </summary>
 void Start()
 {
     buttonSalva        = buttonSalva.GetComponent <InteractionButton>();
     buttonSalvaConNome = buttonSalvaConNome.GetComponent <InteractionButton>();
     // Aggiungo un ascoltatore che ascolta gli eventi generati dal bottone "Si".
     saveFromUI.onClick.AddListener(Salva);
 }
Beispiel #2
0
    void Reset()
    {
        if (button == null)
        {
            button = GetComponent <InteractionButton>();
        }
        if (buttonGraphic == null)
        {
            buttonGraphic = button.GetComponent <LeapGraphic>();
            if (buttonGraphic == null)
            {
                buttonGraphic = button.GetComponentInChildren <LeapGraphic>();
            }
        }

        buttonGraphicColor   = new Color(1.00F, 1.00F, 1.00F);
        buttonDepressedColor = new Color(0.60F, 0.60F, 0.60F);
        buttonDisabledColor  = new Color(0.80F, 0.80F, 0.80F);
        buttonTint           = Color.white;
    }