Пример #1
0
        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);
        }
Пример #2
0
 private void Awake()
 {
     buttonComponent    = GetComponent <Button>();
     clickableBehaviour = GetComponent <ClickableBehaviour>();
 }
Пример #3
0
        // Private and protected members

        private void Awake()
        {
            ClickableBehaviour = GetComponent <ClickableBehaviour>();
        }