private void Awake() { if (instance == null) { instance = this; } }
private void Start() { menuBikeColorSelector = MenuBikeColorSelector.instance; int count = transform.parent.parent.GetSiblingIndex(); var ppc = new PlayerPrefsController(); int killsToUnlock = count - ppc.killCount; unlockableText.text = $"{killsToUnlock} Takedowns to unlock"; isUnlocked = count <= ppc.killCount; selectedTooltip = isUnlocked?tooltipUnlocked:tooltipLocked; }