void Awake() { animationPopComponent = GetComponent <AnimationPopComponent>(); textComp = GetComponent <Text>(); ComponentLocator.instance.singleObjectInstanceReferences.playerProfile.playerCurrency.OnCurrencyChange(currencyType, UpdateUI); UpdateUI(ComponentLocator.instance.singleObjectInstanceReferences.playerProfile.playerCurrency.GetCurrencyAmount(currencyType)); }
void Awake() { animationPopComponent = GetComponent <AnimationPopComponent>(); }
private void Start() { animationPopComponent = GetComponent <AnimationPopComponent>(); ComponentLocator.instance.GetDependency <AISpawnComponent>().newWaveEvent += WaveSpawned; }