Example #1
0
    void Update()
    {
        if (displayingXboxMaterial)
        {
            renderer.material = xboxMaterial;
        }
        else
        {
            if (!mouseOverInThisFrame)
            {
                renderer.material = normalMaterial;
            }
            else if (mouseOverInThisFrame)
            {
                renderer.material = hoverMaterial;
            }
            mouseOverInThisFrame = false;
        }

        if (Input.GetButton("Joystick UI Equip"))
        {
            UserClicked.Invoke();
            inventory.equipSound.Play();
        }
    }
Example #2
0
 private void postsList_UserClicked(User i_User)
 {
     if (UserClicked != null)
     {
         UserClicked.Invoke(i_User);
     }
 }
Example #3
0
 public void OnUserClicked(User i_User)
 {
     if (UserClicked != null)
     {
         UserClicked.Invoke(i_User);
     }
 }
 private void labelFrom_Click(object i_Sender, EventArgs i_E)
 {
     if (UserClicked != null)
     {
         UserClicked.Invoke(m_Post.From);
     }
 }
Example #5
0
 private void PostViewToAddToListOnUserClicked(User i_User)
 {
     if (UserClicked != null)
     {
         UserClicked.Invoke(i_User);
     }
 }
Example #6
0
 void OnMouseDown()
 {
     UserClicked.Invoke();
     inventory.equipSound.Play();
 }
Example #7
0
 private void SetResult(DialogueResult res)
 {
     _taskCompletionSource.SetResult(res);
     UserClicked?.Invoke(res);
     Close();
 }
 void OnMouseDown()
 {
     UserClicked.Invoke();
     inventory.consumeSound.Play();
 }
 public override void OnApplyTemplate()
 {
     MainButton        = GetTemplateChild(nameof(MainButton)) as Button;
     MainButton.Click += (s, e) => UserClicked?.Invoke(this, e);
 }
Example #10
0
 private void labelName_Click(object sender, EventArgs e)
 {
     UserClicked?.Invoke(this, e);
 }
Example #11
0
 private void PatientListItem_Click(object sender, EventArgs e)
 {
     UserClicked?.Invoke(this, e);
 }
 void OnMouseDown()
 {
     UserClicked.Invoke();
     inventory.destroySound.Play();
 }