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); }
public void ReturnToMap() { DemonicInfluence.Tick(); this.gameObject.SetActive(true); WindowManager.ClearOverlays(); Deck.instance.Reset(); AnimationQueue.Clear(); SceneHelper.Close(SceneHelper.BATTLEFIELD); SceneHelper.Close(SceneHelper.CHEST); CardWindow.instance.PopulateFullDeck(); this.ExploreFrom(this.currentNode); if (this.IsFinalRoom()) { this.GotoNextDepth(); } this.RenderMap(); }
public void Reset() { StimulyReferencePoint.Children.Clear(); queue1.Clear(); }
public static void Open(string sceneName) { AnimationQueue.Clear(); SceneManager.LoadScene(sceneName, LoadSceneMode.Additive); }