Move buttons to HUD Manager
This commit is contained in:
@@ -2,6 +2,7 @@ using UnityEngine;
|
||||
using SkiaSharp.Unity;
|
||||
using Input;
|
||||
using AppleHills.Core;
|
||||
using UI;
|
||||
using UnityEngine.Events;
|
||||
|
||||
public class AppSwitcher : MonoBehaviour
|
||||
@@ -31,6 +32,7 @@ public class AppSwitcher : MonoBehaviour
|
||||
|
||||
public void OpenAppSwitcher()
|
||||
{
|
||||
PlayerHudManager.Instance.HideAllHudExcept(gameObject);
|
||||
|
||||
rainbow.SetActive(true);
|
||||
//Activate players
|
||||
@@ -67,6 +69,8 @@ public class AppSwitcher : MonoBehaviour
|
||||
|
||||
// Hide the exit button
|
||||
exitButton.SetActive(false);
|
||||
|
||||
PlayerHudManager.Instance.ShowAllHud();
|
||||
}
|
||||
|
||||
public void GamesHiddenAnimationEvent()
|
||||
|
||||
Reference in New Issue
Block a user