コード例 #1
0
 void Awake()
 {
     animationPopComponent = GetComponent <AnimationPopComponent>();
     textComp = GetComponent <Text>();
     ComponentLocator.instance.singleObjectInstanceReferences.playerProfile.playerCurrency.OnCurrencyChange(currencyType, UpdateUI);
     UpdateUI(ComponentLocator.instance.singleObjectInstanceReferences.playerProfile.playerCurrency.GetCurrencyAmount(currencyType));
 }
コード例 #2
0
 void Awake()
 {
     animationPopComponent = GetComponent <AnimationPopComponent>();
 }
コード例 #3
0
 private void Start()
 {
     animationPopComponent = GetComponent <AnimationPopComponent>();
     ComponentLocator.instance.GetDependency <AISpawnComponent>().newWaveEvent += WaveSpawned;
 }