| | 1 | | namespace DCL.ECSComponents |
| | 2 | | { |
| | 3 | | public static class PBOnPointerDown_Defaults |
| | 4 | | { |
| | 5 | | public static ActionButton GetButton(this PBOnPointerDown self) |
| | 6 | | { |
| 0 | 7 | | return self.HasButton ? self.Button : ActionButton.Any; |
| | 8 | | } |
| | 9 | |
|
| | 10 | | public static string GetHoverText(this PBOnPointerDown self) |
| | 11 | | { |
| 4 | 12 | | return self.HasHoverText ? self.HoverText : "Interact"; |
| | 13 | | } |
| | 14 | |
|
| | 15 | | public static float GetMaxDistance(this PBOnPointerDown self) |
| | 16 | | { |
| 9 | 17 | | return self.HasMaxDistance ? self.MaxDistance : 10.0f; |
| | 18 | | } |
| | 19 | |
|
| | 20 | | public static bool GetShowFeedback(this PBOnPointerDown self) |
| | 21 | | { |
| 0 | 22 | | return !self.HasShowFeedback || self.ShowFeedback; |
| | 23 | | } |
| | 24 | | } |
| | 25 | | } |