public void AnimateOutAndRecycle() { CleanupSelectionView(); transition_.AnimateOut(() => { ObjectPoolManager.Recycle(this); }); ActionLabelBar.Hide(); }
// 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; }); }
// PRAGMA MARK - IRecycleSetupSubscriber Implementation void IRecycleSetupSubscriber.OnRecycleSetup() { ActionLabelBar.Show(new ActionLabelViewConfig[] { new ActionLabelViewConfig("GENERIC_ACTION_SELECT", ActionType.Positive), }); }
public void AnimateOut(Action callback) { CleanupSelectionView(); transition_.AnimateOut(callback); ActionLabelBar.Hide(); }