示例#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();
        }
    }
示例#2
0
 private void postsList_UserClicked(User i_User)
 {
     if (UserClicked != null)
     {
         UserClicked.Invoke(i_User);
     }
 }
示例#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);
     }
 }
示例#5
0
 private void PostViewToAddToListOnUserClicked(User i_User)
 {
     if (UserClicked != null)
     {
         UserClicked.Invoke(i_User);
     }
 }
示例#6
0
 void OnMouseDown()
 {
     UserClicked.Invoke();
     inventory.equipSound.Play();
 }
示例#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);
 }
示例#10
0
 private void labelName_Click(object sender, EventArgs e)
 {
     UserClicked?.Invoke(this, e);
 }
示例#11
0
 private void PatientListItem_Click(object sender, EventArgs e)
 {
     UserClicked?.Invoke(this, e);
 }
 void OnMouseDown()
 {
     UserClicked.Invoke();
     inventory.destroySound.Play();
 }