Example #1
0
 public void Show(float fadeDuration)
 {
     _root.Deactivate();
     _playersChosenThisCard = new List <PlayerData>();
     PlayerInputManager.Instance.ButtonPressed += OnButtonPressed;
     _root.DOFade(1, fadeDuration);
 }
Example #2
0
 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;
     }
 }
Example #3
0
 protected override void Start()
 {
     base.Start();
     menuGroup.Deactivate();
 }