Esempio n. 1
0
 public void AnimateOutAndRecycle()
 {
     CleanupSelectionView();
     transition_.AnimateOut(() => {
         ObjectPoolManager.Recycle(this);
     });
     ActionLabelBar.Hide();
 }
Esempio n. 2
0
        // PRAGMA MARK - Public Interface
        public void Init(Action <CoopLevelConfig> levelSelectedCallback)
        {
            levelSelectedCallback_ = levelSelectedCallback;

            foreach (CoopLevelConfig config in GameConstants.Instance.CoopLevels)
            {
                var coopLevel = ObjectPoolManager.Create <CoopLevelSelectable>(GamePrefabs.Instance.CoopLevelSelectablePrefab, parent: selectableContainer_);
                coopLevel.Init(config, HandleLevelSelected);
            }

            ActionLabelBar.Show(new ActionLabelViewConfig[] {
                new ActionLabelViewConfig("GENERIC_ACTION_SELECT", ActionType.Positive)
            });

            transition_.AnimateIn(() => {
                selectionView_ = ObjectPoolManager.CreateView <ElementSelectionView>(GamePrefabs.Instance.ElementSelectionViewPrefab);
                selectionView_.Init(InputUtil.AllInputs, selectableContainer_);
                selectionView_.OnSelectableHover += HandleSelectableHovered;
            });
        }
Esempio n. 3
0
 // PRAGMA MARK - IRecycleSetupSubscriber Implementation
 void IRecycleSetupSubscriber.OnRecycleSetup()
 {
     ActionLabelBar.Show(new ActionLabelViewConfig[] {
         new ActionLabelViewConfig("GENERIC_ACTION_SELECT", ActionType.Positive),
     });
 }
Esempio n. 4
0
 public void AnimateOut(Action callback)
 {
     CleanupSelectionView();
     transition_.AnimateOut(callback);
     ActionLabelBar.Hide();
 }