void Start() { WindowManager.ShowScreen(WindowManager.startPanel); AnimationQueue.Clear(); SceneHelper.CloseAll(); canvasObject.GetComponent <Canvas>().sortingLayerName = "UI"; canvasObject.GetComponent <Canvas>().sortingOrder = WindowManager.UILayer; }
public static void ResetGame() { AnimationQueue.Clear(); SceneHelper.CloseAll(); Deck.instance.NewDeck(); WindowManager.ClearOverlays(); WindowManager.ShowScreen(WindowManager.startPanel); }