Release() public méthode

Release logic frees the button from its "IsPressed" state
public Release ( ) : void
Résultat void
 /// <summary>
 /// uGUI Event system stuff
 /// It's also utilised by the editor input helper
 /// </summary>
 /// <param name="eventData">Data of the passed event</param>
 public void OnPointerUp(PointerEventData eventData)
 {
     if (actionButton != null)
     {
         actionButton.gameObject.SetActive(false);
     }
     _virtualButton.Release();
 }
Exemple #2
0
 /// <summary>
 /// uGUI Event system stuff
 /// It's also utilised by the editor input helper
 /// </summary>
 /// <param name="eventData">Data of the passed event</param>
 public void OnPointerUp(PointerEventData eventData)
 {
     _virtualButton.Release();
 }
 /// <param name="eventData">Data of the passed event</param>
 public void OnPointerUp(PointerEventData eventData)
 {
     ActiveButton = false;
     _virtualButton.Release();
 }
Exemple #4
0
 /// <summary>
 /// uGUI Event system stuff
 /// It's also utilised by the editor input helper
 /// </summary>
 /// <param name="eventData">Data of the passed event</param>
 public void OnPointerUp(PointerEventData eventData)
 {
     _virtualButton.Release();
     img.sprite = unpressedSprite;
 }
Exemple #5
0
 /// <summary>
 /// uGUI Event system stuff
 /// It's also utilised by the editor input helper
 /// </summary>
 /// <param name="eventData">Data of the passed event</param>
 public void OnPointerUp(PointerEventData eventData)
 {
     gameObject.GetComponent <Image>().color = new Color32(231, 231, 231, 255);
     _virtualButton.Release();
 }