Exemple #1
0
 virtual protected void hove_detected(UIButtonColliderIndexes index)
 {
     curr_index = index;
     delight_button();
     highlight_button();
     change_button_text();
     last_index = curr_index;
 }
Exemple #2
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "UIButton")
     {
         curr_UIButtonIndex = other.GetComponent <UIButtonCollider>().get_index();
         if (last_UIButtonIndex != curr_UIButtonIndex)
         {
             UIP_script.ButtonHoved(curr_UIButtonIndex);
             last_UIButtonIndex = curr_UIButtonIndex;
         }
     }
 }
Exemple #3
0
    virtual protected void Start()
    {
        ButtonHoved += hove_detected;
        PushButton  += push_detected;

        this.C_color    = C_Buttons_TRANS.GetComponent <MeshRenderer>().material.color;
        this.U_color    = U_Buttons_TRANS.GetComponent <MeshRenderer>().material.color;
        this.D_color    = D_Buttons_TRANS.GetComponent <MeshRenderer>().material.color;
        this.L_color    = L_Buttons_TRANS.GetComponent <MeshRenderer>().material.color;
        this.R_color    = R_Buttons_TRANS.GetComponent <MeshRenderer>().material.color;
        this.curr_index = 0;
        this.last_index = 0;

        hove_detected(UIButtonColliderIndexes.C);
    }
Exemple #4
0
 private void Start()
 {
     //this.button_index = 0;
     this.curr_UIButtonIndex = 0;
     this.last_UIButtonIndex = 0;
 }