public void Initialize(HudGameplayController hudGameplay, int seconds, Action afterCollected) { _hudGameplayController = hudGameplay; _hudTimeTarget = hudGameplay.GetTimeHudTargetTransform(); _onAfterCollected = afterCollected; _secondsAdded = seconds; }
public void Initialize(HudGameplayController hudGameplay) { SetState(CoinObjectState.Coin); _currentChestCounter = null; _hudGameplayController = hudGameplay; _hudCoinTarget = hudGameplay.GetCoinHudTargetTransform(); }