Ejemplo n.º 1
0
        public void OnCellClicked(ActionGridElement actionElement)
        {
            //find all with actionGridComponents within selected
            List <ActionGridComponent> list = Selection.GetComponents <ActionGridComponent>();

            foreach (var go in list)
            {
                var act = go.list.FirstOrDefault(t => t == actionElement);
                if (act != null)
                {
                    //Execute action if available
                    act.Execute(go.gameObject);
                }
            }
        }