public void Update() { if (!Dirty) { return; } if (SortingStrategy != null) { SortingStrategy.Sort(); } Dirty = false; }
public void Update() { if (!Dirty) { return; } if (_sortingStrategy != null) { _sortingStrategy.Sort(); } else { Debug.LogError("Missing SortingStrategy on IsoSorting component"); } Dirty = false; }
public void Update() { if (Camera.main != null) { UpdateOnMouseCallbacks(); } if (!Dirty) { return; } if (SortingStrategy != null) { SortingStrategy.Sort(); } Dirty = false; }