private static void DispatchSelectionUpdated(GameObject newSelectedGameObject, GameObject previousSelectedGameObject)
 {
     if (OnSelectionUpdated != null)
     {
         OnSelectionUpdated.Invoke(newSelectedGameObject, previousSelectedGameObject);
     }
 }
    private void PollEvents()
    {
        if (isDirty)
        {
            if (OnSelectionUpdated != null)
            {
                OnSelectionUpdated.Invoke(SelectedEntities);
            }
        }


        isDirty = false;
    }
Пример #3
0
 private static void DispatchSelectionUpdated(GameObject newSelectedGameObject, GameObject previousSelectedGameObject)
 {
     Debug.Log("OnSelectionUpdated");
     OnSelectionUpdated?.Invoke(newSelectedGameObject, previousSelectedGameObject);
 }
 private void InvokeEvent(SelectAction action, SelectableComponent selection = null, bool multi = false)
 {
     OnSelectionUpdated?.Invoke(new SelectionUpdatedEvent(action, selection?.GetComponent <Simulation.SimEntityComponent>().EntityID ?? 0, multi));
 }