Exemple #1
0
 public override void OnSelect(BaseEventData eventData)
 {
     base.OnSelect(eventData);
     //Debug.Log("a");
     transform.localScale = scala * scaleMultiplier;
     AudioButton.sSelect();
 }
Exemple #2
0
 public void OnSelect(BaseEventData eventData)
 {
     if (EventSystem.current && EventSystem.current.currentSelectedGameObject != gameObject)
     {
         AudioButton.sSelect();
     }
 }
Exemple #3
0
 public void Submit()
 {
     if (!submit)
     {
         return;
     }
     onSubmit.Invoke();
     if (!useSelectAudio)
     {
         AudioButton.sConfirm();
     }
     else
     {
         AudioButton.sSelect();
     }
 }
Exemple #4
0
 public void OnMove(AxisEventData eventData)
 {
     if (!move)
     {
         return;
     }
     if (verticalMove && eventData.moveVector.x != 0)
     {
         return;
     }
     if (!verticalMove && eventData.moveVector.y != 0)
     {
         return;
     }
     if (!useSelectAudio)
     {
         AudioButton.sConfirm();
     }
     else
     {
         AudioButton.sSelect();
     }
 }