Skip to content

Commit

Permalink
Call base functions in VioletButton to fix highlight colors
Browse files Browse the repository at this point in the history
  • Loading branch information
neilsarkar committed Nov 10, 2020
1 parent cbaa37f commit 9d84744
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Runtime/Navigation/VioletButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@ protected override void Awake() {
}

protected override void OnEnable() {
base.OnEnable();
this.onClick.AddListener(Submit);
}

protected override void OnDisable() {
base.OnDisable();
this.onClick.RemoveListener(Submit);
}

protected override void OnDestroy() {
base.OnDestroy();
this.onClick.RemoveListener(Submit);
}

Expand Down

0 comments on commit 9d84744

Please sign in to comment.