public static bool AddReferencesAsAction(StixDataEntityBase entity, ClickableBehaviour clickableBehaviour) { ExternalReference[] references = getExternalReferences(entity); if (references.Any()) { clickableBehaviour.SecondaryAction = () => { foreach (var url in references.Select((e) => e.url)) { if (!GameManager.IsQuickPaused) { HelperObjects.PauseMenu.Pause(); } Application.OpenURL(url); } }; return(true); } return(false); }
private void Awake() { buttonComponent = GetComponent <Button>(); clickableBehaviour = GetComponent <ClickableBehaviour>(); }
// Private and protected members private void Awake() { ClickableBehaviour = GetComponent <ClickableBehaviour>(); }