void SetQuickBarShortcut(SceneObject sceneObject, int index, Texture texture) { OnQuickBarAdd?.Invoke(sceneObject, index); if (index >= shortcutsImgs.Length) { return; } shortcutsImgs[index].SetTexture(texture); }
private void SetQuickBarShortcut(CatalogItem catalogItem, int index, Texture texture) { OnQuickBarAdd?.Invoke(catalogItem, index); if (index >= shortcutsImgs.Length) { return; } if (shortcutsImgs[index] != null && texture != null) { shortcutsImgs[index].SetTexture(texture); } }