private void OnEnable() { if (!isInitialized) { TropheeSelectable[] selectablesList = GetComponentsInChildren <TropheeSelectable>(); foreach (TropheeSelectable selectable in selectablesList) { selectable.RegisterSelecter(this, defaultTrophee); } isInitialized = true; } CleanDisplay(); foreach (KeyValuePair <string, TropheeSelectable> keyValue in selectables) { TropheesStat tStats = TropheesStat.getInstance(); keyValue.Value.changeTropheeContent(tStats.getTropheeItem(keyValue.Key)); } }
public void Trigger() { TropheesStat tStats = TropheesStat.getInstance(); tStats.unlockTropheeItem(identifier); }
public void registerInstance() { tropheeStatInstance = this; }
public void Dab(GameObject dabAuthor) { TropheesStat tStats = TropheesStat.getInstance(); tStats.unlockTropheeItem(identifier); }