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