public void Swap(CUIGroup newGroup, bool instant = false) { if (newGroup == activeGroup) { return; } if (activeGroup) { if (instant) { CUIManager.SwapAnimate(activeGroup, newGroup, -1f, CUIAnimation.InstantOut, CUIAnimation.InstantIn); } else { CUIManager.SwapAnimate(activeGroup, newGroup); } } else { if (instant) { CUIManager.Animate(newGroup, CUIAnimation.InstantIn); } else { CUIManager.Animate(newGroup, true); } } activeGroup = newGroup; }
private void OnInteractedWith(bool interacting) { if (interacting) { foreach (WristBubble bubble in WristBubble.bubbles) { CUIManager.Animate(bubble.cuiGroup, true); } } else { foreach (WristBubble bubble in WristBubble.bubbles) { if (!bubble.isPinned) { CUIManager.Animate(bubble.cuiGroup, false); } } } if (interacting) { CUIManager.SwapAnimate(songScrollerCUI, mediaControlButtonsCUI); } else { CUIManager.SwapAnimate(mediaControlButtonsCUI, songScrollerCUI); } }
private void ShowGamesGrid() { if (activeGroup != gridView) { CUIManager.SwapAnimate(activeGroup, gridView); activeGroup = gridView; } gridDisplayGroup.MakeGames(); }
public void Button_Home() { // if (isShowingGameDetails) HideGameDetails(); if (activeGroup == welcomeView) { return; } CUIManager.SwapAnimate(activeGroup, welcomeView); activeGroup = welcomeView; favoritesDispalyGroup.MakeGames(); }
private void Update() { float yay = (float)player.time / (float)player.length; if (yay <= 0f) { return; } if (float.IsNaN(yay)) { return; } //Debug.Log(yay); slider.SetValueWithoutNotify(yay); if (Input.GetKeyDown(KeyCode.A)) { CUIManager.SwapAnimate(myGroup, myGroup2); } }