public void Show(float fadeDuration) { _root.Deactivate(); _playersChosenThisCard = new List <PlayerData>(); PlayerInputManager.Instance.ButtonPressed += OnButtonPressed; _root.DOFade(1, fadeDuration); }
public void Hide() { _uiRoot.Deactivate(); KillAllCards(FADE_OUT_DURATION); Timer.Register(FADE_OUT_DURATION, () => CardsHasBeenChosen.SafeInvoke()); _playerPriorityIndex++; if (_playerPriorityIndex >= Game.Instance.PlayerDataEntries.Count) { _playerPriorityIndex = 0; } }
protected override void Start() { base.Start(); menuGroup.Deactivate(); }