예제 #1
0
 protected override void InitMenu()
 {
     base.InitMenu();
     ComboMenu.AddItem(new MenuItem("QCombo", "Auto Tumble").SetValue(true));
     ComboMenu.AddItem(new MenuItem("QHarass", "AA - Q - AA").SetValue(true));
     ComboMenu.AddItem(new MenuItem("QChecks", "Q Safety Checks").SetValue(true));
     ComboMenu.AddItem(new MenuItem("QWall", "Enable Wall Tumble?").SetValue(true));
     ComboMenu.AddItem(new MenuItem("QUltSpam", "Spam Q when R active").SetValue(false));
     ComboMenu.AddItem(new MenuItem("FocusTwoW", "Focus 2 W Stacks").SetValue(true));
     ComboMenu.AddItem(new MenuItem("ECombo", "Auto Condemn").SetValue(true));
     ComboMenu.AddItem(new MenuItem("PradaE", "Authentic Prada Condemn").SetValue(true));
     ComboMenu.AddItem(new MenuItem("EHitchance", "E % Hitchance").SetValue(new Slider(100, 50, 100)));
     ComboMenu.AddItem(new MenuItem("DrawE", "Draw Condemn Prediction").SetValue(true));
     ComboMenu.AddItem(new MenuItem("RCombo", "Auto Ult (soon)").SetValue(false));
     ComboMenu.AddItem(new MenuItem("AutoBuy", "Auto-Swap Trinkets?").SetValue(true));
     EscapeMenu.AddItem(new MenuItem("QEscape", "Escape with Q").SetValue(true));
     EscapeMenu.AddItem(new MenuItem("CondemnEscape", "Escape with E").SetValue(true));
     EscapeMenu.AddItem(new MenuItem("EInterrupt", "Use E to Interrupt").SetValue(true));
     LaneClearMenu.AddItem(new MenuItem("QFarm", "Use Q (SMART)").SetValue(true));
     SkinhackMenu.AddItem(
         new MenuItem("skin", "Skin: ").SetValue(
             new StringList(new string[]
                            { "Classic", "Vindicator", "Aristocrat", "Dragonslayer", "Heartseeker", "SKT T1", "Arclight" }))).ValueChanged +=
         (sender, args) =>
     {
         _selectedSkin = SkinhackMenu.Item("skin").GetValue <StringList>().SelectedIndex + 1;
         Player.SetSkin(Player.CharData.BaseSkinName, _selectedSkin);
     };
     SkinhackMenu.AddItem(new MenuItem("enableskinhack", "Enable Skinhax").SetValue(true));
     SkinhackMenu.AddItem(new MenuItem("cyclethroughskins", "Cycle Through Skins").SetValue(false));
     SkinhackMenu.AddItem(new MenuItem("cyclethroughskinstime", "Cycling Time").SetValue(new Slider(30, 30, 600)));
 }
예제 #2
0
        private int i = 0; //Sert pour le temps(pluie neige ...)

        public GameScreen()
        {
            timeSpawn    = 10000;
            WorldEffects = new List <WorldEffect>();

            Player = new Player(this, TexturesManager.Player); // Charge le Joueur

            Windows.Add(new PanelMenu(this, new Vector2(0, MainGame.ScreenY / 2), TexturesManager.Window, Player));
            escapeMenu = new EscapeMenu(this, new Vector2(100, MainGame.ScreenY / 4 + 50));

            IsPaused = false;

            Entities        = new List <Entity>();
            deletedEntities = new List <Entity>(); // On transfere un Monster deleted a l'interieur puis on le detruit dans cette liste

            MapData mapData = new MapData();

            if (!mapData.FromFile("Content/Maps/map.mrm"))
            {
                throw new Exception();
            }
            MapFirst = new Map(mapData);

            camera = new Cam(mapData.MapWidth * 32, mapData.MapHeight * 32, MainGame.graphics);
        }
예제 #3
0
        public override void Startup()
        {
            IoCManager.InjectDependencies(this);

            inputManager.KeyBindStateChanged += OnKeyBindStateChanged;

            escapeMenu = new EscapeMenu
            {
                Visible = false
            };
            escapeMenu.AddToScreen();

            var escapeMenuCommand = InputCmdHandler.FromDelegate(session =>
            {
                if (escapeMenu.Visible)
                {
                    if (escapeMenu.IsAtFront())
                    {
                        escapeMenu.Visible = false;
                    }
                    else
                    {
                        escapeMenu.MoveToFront();
                    }
                }
                else
                {
                    escapeMenu.OpenCentered();
                }
            });

            inputManager.SetInputCommand(EngineKeyFunctions.EscapeMenu, escapeMenuCommand);
        }
예제 #4
0
 void Update()
 {
     if (Input.GetKeyUp("escape"))
     {
         EscapeMenu.SetActive(!EscapeMenu.activeSelf);
     }
 }
예제 #5
0
 private void PauseToggled()
 {
     // Activate player controller if the player is alive and the escape menu is not activated and the game has not yet finished.
     if (!IsDead && !GameManager.Singleton.GameFinished)
     {
         m_playerController.enabled = !EscapeMenu.IsActive();
     }
 }
예제 #6
0
 // Use this for initialization
 void Start()
 {
     //初始化
     ani        = GameObject.Find("Player").GetComponent <Animator>( );
     shootCD    = 0;
     canShoot   = false;
     escapeMenu = GameObject.Find("Scripts").GetComponent <EscapeMenu>();
 }
예제 #7
0
 void Start()
 {
     pp         = gameObject.GetComponent <SpriteRenderer>();
     player     = transform.GetComponent <Rigidbody2D>(); //获取刚体
     ani        = GetComponent <Animator>();              //获取动画状态机
     escapeMenu = GameObject.Find("Scripts").GetComponent <EscapeMenu>();
     NextScene  = GameObject.Find("NextScene").GetComponent <NextScene>();
 }
예제 #8
0
 //If clone is activated and main player ship dies, clone ship becomes main player ship
 public void CloneBecomeMain()
 {
     _isMovementMirrored = false;
     isClone             = false;
     if (gameObject != null)
     {
         _escapeMenu = gameObject.GetComponent <EscapeMenu>();
     }
 }
 private void Awake()
 {
     if (SceneManager.GetActiveScene().buildIndex != 0)
     {
         em = GameObject.Find("MenuHandler").GetComponent <EscapeMenu>();
     }
     anim      = this.GetComponent <Animator>();
     rb        = this.GetComponent <Rigidbody2D>();
     movespeed = Random.Range(0.3f, 1);
 }
예제 #10
0
 private void InitializeSingleton()
 {
     if (Singleton != null && Singleton != this)
     {
         Destroy(this);
     }
     else
     {
         Singleton = this;
     }
 }
예제 #11
0
 void Awake()
 {
     if (Instance != null && Instance != this)
     {
         Destroy(gameObject);
     }
     else
     {
         Instance = this;
     }
 }
예제 #12
0
 protected override void Respawn(Vector2Int respawnPoint)
 {
     if (isLocalPlayer)
     {
         GameOverMenu.Deactivate();
         // Activate player controller if the escape menu is not activated
         if (!EscapeMenu.IsActive())
         {
             m_playerController.enabled = true;
         }
         m_aim.CanAim = true;
     }
     base.Respawn(respawnPoint);
 }
예제 #13
0
 //Initialize current level
 public void init(Level level)
 {
     if (isClone)
     {
         return;
     }
     currentLevel = level;
     CameraController.currentCamera.gameObject.transform.position = currentLevel.cameraPosition.transform.position;
     currentPlane             = currentLevel.lanes.IndexOf(currentLevel.SpawnLane);
     _alive                   = true;
     _invulnerable            = true;
     _invulnerabilityCooldown = Time.time;
     _escapeMenu              = gameObject.GetComponent <EscapeMenu>();
 }
예제 #14
0
        public override void _Ready()
        {
            root       = GetTree().Root;
            sceneStack = new List <Node>();

            _autopilotMenu = GD.Load <PackedScene>("res://scenes/encounter/AutopilotMenu.tscn").Instance() as AutopilotMenu;
            _characterMenu = GD.Load <PackedScene>("res://scenes/encounter/CharacterMenu.tscn").Instance() as CharacterMenu;
            _creditsMenu   = GD.Load <PackedScene>("res://scenes/CreditsMenu.tscn").Instance() as CreditsMenu;
            _defeatMenu    = GD.Load <PackedScene>("res://scenes/encounter/DefeatMenu.tscn").Instance() as DefeatMenu;
            _escapeMenu    = GD.Load <PackedScene>("res://scenes/encounter/EscapeMenu.tscn").Instance() as EscapeMenu;
            _helpMenu      = GD.Load <PackedScene>("res://scenes/encounter/HelpMenu.tscn").Instance() as HelpMenu;
            _inventoryMenu = GD.Load <PackedScene>("res://scenes/encounter/InventoryMenu.tscn").Instance() as InventoryMenu;
            _settingsMenu  = GD.Load <PackedScene>("res://scenes/SettingsMenu.tscn").Instance() as SettingsMenu;
            _victoryMenu   = GD.Load <PackedScene>("res://scenes/encounter/VictoryMenu.tscn").Instance() as VictoryMenu;
        }
예제 #15
0
    private new void FixedUpdate()
    {
        if (!isLocalPlayer)
        {
            return;
        }
        base.FixedUpdate();

        Cursor.visible = GameOverMenu.IsActive() || EscapeMenu.IsActive();
        m_hud.UpdateHUD();
        if (GameManager.Singleton.GameFinished && GameOverMenu.IsActive())
        {
            GameOverMenu.Deactivate();
        }
    }
예제 #16
0
        public override void Startup()
        {
            IoCManager.InjectDependencies(this);

            escapeMenu = new EscapeMenu
            {
                Visible = false
            };
            escapeMenu.AddToScreen();

            _gameChat = new Chatbox();
            userInterfaceManager.StateRoot.AddChild(_gameChat);
            _gameChat.TextSubmitted    += console.ParseChatMessage;
            console.AddString          += _gameChat.AddLine;
            _gameChat.DefaultChatFormat = "say \"{0}\"";
        }
예제 #17
0
        public override void Startup()
        {
            IoCManager.InjectDependencies(this);

            mapManager.Startup();

            inputManager.KeyBindStateChanged += OnKeyBindStateChanged;

            escapeMenu = new EscapeMenu
            {
                Visible = false
            };
            escapeMenu.AddToScreen();

            var escapeMenuCommand = InputCmdHandler.FromDelegate(session =>
            {
                if (escapeMenu.Visible)
                {
                    if (escapeMenu.IsAtFront())
                    {
                        escapeMenu.Visible = false;
                    }
                    else
                    {
                        escapeMenu.MoveToFront();
                    }
                }
                else
                {
                    escapeMenu.OpenCentered();
                }
            });

            inputManager.SetInputCommand(EngineKeyFunctions.EscapeMenu, escapeMenuCommand);
            inputManager.SetInputCommand(EngineKeyFunctions.FocusChat, InputCmdHandler.FromDelegate(session =>
            {
                _gameChat.Input.GrabFocus();
            }));

            _gameChat = new Chatbox();
            userInterfaceManager.StateRoot.AddChild(_gameChat);
            _gameChat.TextSubmitted    += console.ParseChatMessage;
            console.AddString          += _gameChat.AddLine;
            _gameChat.DefaultChatFormat = "say \"{0}\"";
        }
예제 #18
0
 public static void SetActive(bool val)
 {
     if (BuyMenu.show == val)
     {
         return;
     }
     BuyMenu.show = val;
     if (BuyMenu.show)
     {
         BuyMenu.catid = -1;
         Crosshair.SetActive(false);
         EscapeMenu.SetActive(false);
     }
     else
     {
         Crosshair.SetActive(true);
     }
     vp_FPCamera.cs.SetMouseFreeze(BuyMenu.show);
 }
예제 #19
0
        private void StateManagerOnOnStateChanged(StateChangedEventArgs obj)
        {
            if (obj.NewState is GameScreen)
            {
                // Switched TO GameScreen.
                _escapeMenu = new EscapeMenu(_clientConsole, _tileDefinitionManager, _placementManager,
                                             _prototypeManager, _resourceCache, _configurationManager)
                {
                    Visible = false
                };

                _escapeMenu.AddToScreen();

                var escapeMenuCommand = InputCmdHandler.FromDelegate(session =>
                {
                    if (_escapeMenu.Visible)
                    {
                        if (_escapeMenu.IsAtFront())
                        {
                            _escapeMenu.Visible = false;
                        }
                        else
                        {
                            _escapeMenu.MoveToFront();
                        }
                    }
                    else
                    {
                        _escapeMenu.OpenCentered();
                    }
                });

                _inputManager.SetInputCommand(EngineKeyFunctions.EscapeMenu, escapeMenuCommand);
            }
            else if (obj.OldState is GameScreen)
            {
                // Switched FROM GameScreen.
                _escapeMenu.Dispose();
                _escapeMenu = null;

                _inputManager.SetInputCommand(EngineKeyFunctions.EscapeMenu, null);
            }
        }
 private void Start()
 {
     em          = GameObject.Find("MenuHandler").GetComponent <EscapeMenu>();
     anim        = this.GetComponent <Animator>();
     rb          = this.GetComponent <Rigidbody2D>();
     itemDisplay = this.transform.GetChild(0).gameObject.GetComponent <ItemDisplay>();
     if (anim == null)
     {
         Debug.LogError("Couldn't find the animator on gameobject: " + this.gameObject.name);
     }
     if (rb == null)
     {
         Debug.LogError("Couldn't find the rigidbody2D on gameobject: " + this.gameObject.name);
     }
     if (itemDisplay == null)
     {
         Debug.LogError("Couldn't find the itemdisplay on gameobject: " + this.gameObject.name);
     }
     itemDisplay.StartCoroutine("UpdateItem");
 }
예제 #21
0
        // Gerer la projection des ennemis sur des cases interdites sinon sortie du pathfinding
        public GameScreen()
        {
            XactManager.PlaySong("Day01");

            WorldEffects = new List <WorldEffect>();

            Player = new Player(this, TexturesManager.Player); // Charge le Joueur

            Windows.Add(new Panel(this, new Vector2(0, MainGame.ScreenY / 2), TexturesManager.Window, Player));
            escapeMenu = new EscapeMenu(this, new Vector2(100, MainGame.ScreenY / 4 + 50));

            Entities        = new List <Entity>();
            deletedEntities = new List <Entity>(); // On transfere un Monster deleted a l'interieur puis on le detruit dans cette liste


            IsPaused  = false;
            timeSpawn = 1000;

            Camera = new Cam(MainGame.GetInstance().graphics);
        }
예제 #22
0
        private void StateManagerOnOnStateChanged(StateChangedEventArgs obj)
        {
            if (obj.NewState is GameScreenBase)
            {
                // Switched TO GameScreen.
                _escapeMenu = new EscapeMenu(_consoleHost);

                _escapeMenu.OnClose += () => _gameHud.EscapeButtonDown = false;

                _inputManager.SetInputCommand(EngineKeyFunctions.EscapeMenu,
                                              InputCmdHandler.FromDelegate(s => Enabled()));
            }
            else if (obj.OldState is GameScreenBase)
            {
                // Switched FROM GameScreen.
                _escapeMenu.Dispose();
                _escapeMenu = null;

                _inputManager.SetInputCommand(EngineKeyFunctions.EscapeMenu, null);
            }
        }
예제 #23
0
        private void StateManagerOnOnStateChanged(StateChangedEventArgs obj)
        {
            if (obj.NewState is GameScreen)
            {
                // Switched TO GameScreen.
                _escapeMenu = new EscapeMenu(_clientConsole, _tileDefinitionManager, _placementManager,
                                             _prototypeManager, _resourceCache, _configurationManager, _localizationManager);

                _escapeMenu.OnClose += () => _gameHud.EscapeButtonDown = false;

                _inputManager.SetInputCommand(EngineKeyFunctions.EscapeMenu,
                                              InputCmdHandler.FromDelegate(s => Enabled()));
            }
            else if (obj.OldState is GameScreen)
            {
                // Switched FROM GameScreen.
                _escapeMenu.Dispose();
                _escapeMenu = null;

                _inputManager.SetInputCommand(EngineKeyFunctions.EscapeMenu, null);
            }
        }
예제 #24
0
    void Awake()
    {
        currentLevel = this;

        track           = GameObject.Find("Track").transform;
        rowIndex        = 0;
        timer           = 0;
        tileScale       = 1;
        disappearPulses = 0;
        clickPulses     = 0;

        levelDifficulty = (Difficulty)debugDifficulty;
        defaultColor    = Color.white;
        quarterPulse    = debugPulse;
        tileScale       = levelTileScaling;

        source           = GetComponent <AudioSource> ();
        startTime        = Time.time;
        pulseActivations = new List <float> {
            debugPulse / 2, debugPulse
        };

        LevelController.pulsed   += DisappearRow;
        LevelController.pulsed   += PlayBeat;
        FinishTile.finishedLevel += LoadNextLevel;

        BarrierTile.barrierDeath += KillPlayer;
        barrier = GameObject.Find("BarrierCollider");

        GameObject menu = Resources.Load("UI/EscapeMenu") as GameObject;

        escapeMenu = GameObject.Instantiate(menu).GetComponent <EscapeMenu> ();
        escapeMenu.gameObject.SetActive(false);
        menu      = Resources.Load("UI/DeathMenu") as GameObject;
        deathMenu = GameObject.Instantiate(menu).GetComponent <DeathMenu> ();
        deathMenu.gameObject.SetActive(false);
        gameOver = false;
    }
예제 #25
0
 /**
  * Initializes the ship if it is a clone
  */
 public void initAsClone(Level level, int plane, float position)
 {
     isClone      = true;
     currentLevel = level;
     _alive       = true;
     // initialize clone location
     if (!currentLevel.wrapAround)   // level doesn't wrap
     {
         _isMovementMirrored = true;
         currentPlane        = level.lanes.Count - 1 - plane;
         positionOnPlane     = 1 - position;
     }
     else
     {
         currentPlane = plane - (level.lanes.Count / 2);
         if (currentPlane < 0)
         {
             currentPlane += level.lanes.Count;
         }
         positionOnPlane = position;
     }
     _escapeMenu = GameManager.Instance.CurrentPlayerShips[0].GetComponent <EscapeMenu>();
 }
예제 #26
0
 private void Update()
 {
     if (Crosshair.forceLockCursor && !BuyMenu.show && !ChooseTeam.show && !EscapeMenu.show && !MenuBanList.show && !Vote.show)
     {
         Cursor.lockState = CursorLockMode.Locked;
     }
     if (Time.time < this.lastinput)
     {
         return;
     }
     if (Input.GetKeyUp(KeyCode.F10) || Input.GetKeyUp(KeyCode.BackQuote))
     {
         GameObject gameObject = GameObject.Find("GUI");
         gameObject.GetComponent <global::Console>().ToggleActive();
     }
     if (Input.GetKeyUp(KeyCode.Escape))
     {
         if (BuyMenu.isActive())
         {
             BuyMenu.SetActive(false);
         }
         else
         {
             EscapeMenu.Toggle();
         }
     }
     if (Input.GetKeyUp(vp_FPInput.control[16]) && ScoreBoard.gamemode != 3 && (BasePlayer.deadflag == 0 || (BasePlayer.deadflag == 1 && BasePlayer.team == 255)))
     {
         ChooseTeam.Toggle();
     }
     if (Input.GetKey(vp_FPInput.control[17]))
     {
         ScoreBoard.SetActive(true);
     }
     else if (Input.GetKeyUp(vp_FPInput.control[17]))
     {
         ScoreBoard.SetActive(false);
     }
     if (Input.GetKeyUp(KeyCode.Return))
     {
         Chat.Toggle();
     }
     if (Input.GetKeyUp(vp_FPInput.control[18]))
     {
         Chat.ToggleTeam();
     }
     if (Input.GetKeyUp(vp_FPInput.control[19]))
     {
         if (BuyMenu.canbuy && BuyMenu.inbuyzone)
         {
             BuyMenu.Toggle();
         }
         else
         {
             BuyMenu.SetActive(false);
         }
     }
     if (Input.GetKeyUp(vp_FPInput.control[21]))
     {
         if (BuyMenu.canbuy && BuyMenu.inbuyzone)
         {
             BuyMenu.ToggleAmmunition();
         }
         else
         {
             BuyMenu.SetActive(false);
         }
     }
 }
예제 #27
0
 /**
  * Initializes the ship if it is a clone
  */
 public void initAsClone(Level level, int plane, float position)
 {
     isClone = true;
     currentLevel = level;
     _alive = true;
     // initialize clone location
     if (!currentLevel.wrapAround) { // level doesn't wrap
         _isMovementMirrored = true;
         currentPlane = level.lanes.Count - 1 - plane;
         positionOnPlane = 1 - position;
     }
     else {
         currentPlane = plane - (level.lanes.Count / 2);
         if (currentPlane < 0) {
             currentPlane += level.lanes.Count;
         }
         positionOnPlane = position;
     }
     _escapeMenu = GameManager.Instance.CurrentPlayerShips[0].GetComponent<EscapeMenu>();
 }
예제 #28
0
 //Initialize current level
 public void init(Level level)
 {
     if (isClone) {
         return;
     }
     currentLevel = level;
     CameraController.currentCamera.gameObject.transform.position = currentLevel.cameraPosition.transform.position;
     currentPlane = currentLevel.lanes.IndexOf(currentLevel.SpawnLane);
     _alive = true;
     _invulnerable = true;
     _invulnerabilityCooldown = Time.time;
     _escapeMenu = gameObject.GetComponent<EscapeMenu>();
 }
예제 #29
0
 //If clone is activated and main player ship dies, clone ship becomes main player ship
 public void CloneBecomeMain()
 {
     _isMovementMirrored = false;
     isClone = false;
     if (gameObject != null) {
         _escapeMenu = gameObject.GetComponent<EscapeMenu>();
     }
 }
예제 #30
0
    private void OnGUI()
    {
        if (!EscapeMenu.show)
        {
            return;
        }
        Rect position = new Rect(0f, 0f, (float)Screen.width, (float)Screen.height);

        GUI.DrawTexture(position, this.tLoad);
        if (EscapeMenu.state == 0)
        {
            GUI.DrawTexture(new Rect(GUI2.YRES(60f), GUI2.YRES(128f), GUI2.YRES(256f), GUI2.YRES(32f)), this.tLogo);
            if (this.DrawButton(this.rButton[0], Lang.Get("_RESUME"), Lang.Get("_resume_to_game"), _Color.Gray))
            {
                EscapeMenu.Toggle();
            }
            if (this.DrawButton(this.rButton[1], Lang.Get("_VOTE"), Lang.Get("_vote_menu"), _Color.Gray))
            {
                EscapeMenu.Toggle();
                Vote.SetActive(true);
            }
            if (this.DrawButton(this.rButton[2], Lang.Get("_HELP"), Lang.Get("_tip_control"), _Color.Gray))
            {
                EscapeMenu.state = 1;
            }
            if (ScoreBoard.gamemode != 3)
            {
                if (this.DrawButton(this.rButton[3], Lang.Get("_CHOOSE_TEAM"), Lang.Get("_change_team_ingame"), _Color.Gray))
                {
                    EscapeMenu.Toggle();
                    ChooseTeam.Toggle();
                }
            }
            else
            {
                GUI2.DrawTextRes(this.rButton[3], Lang.Get("_CHOOSE_TEAM"), TextAnchor.MiddleRight, _Color.Gray, 1, 14, true);
            }
            if (this.DrawButton(this.rButton[4], Lang.Get("_FULLSCREEN"), Lang.Get("_open_game_in_fullscreen"), _Color.Gray))
            {
                EscapeMenu.Toggle();
                Options.ToggleFullScreen();
            }
            if (this.DrawButton(this.rButton[5], Lang.Get("_OPTIONS"), string.Empty, _Color.Gray))
            {
                EscapeMenu.state = 2;
                MenuOptions.ForceCenter();
                MenuOptions.SetActive(true);
            }
            if (this.DrawButton(this.rButton[6], Lang.Get("_EXIT_MENU"), Lang.Get("_progress_not_saved"), _Color.Yellow))
            {
                EscapeMenu.Toggle();
                global::Console.cs.Command("disconnect");
            }
        }
        else if (EscapeMenu.state == 1)
        {
            this.DrawHelp();
        }
        else if (EscapeMenu.state == 2)
        {
            MenuOptions.Draw();
        }
        if (this.DrawButton(new Rect(GUI2.YRES(60f), GUI2.YRES(400f), GUI2.YRES(64f), GUI2.YRES(32f)), Lang.Get("_BACK"), string.Empty, _Color.Gray))
        {
            EscapeMenu.Toggle();
        }
        GUI2.DrawTextRes(new Rect(GUI2.YRES(60f), GUI2.YRES(420f), GUI2.YRES(64f), GUI2.YRES(32f)), "ESC", TextAnchor.MiddleRight, _Color.Red, 2, 23, true);
    }
예제 #31
0
파일: EscapeMenu.cs 프로젝트: kimreik/Snow
 void Start()
 {
     instance = this;
 }
예제 #32
0
 // Start is called before the first frame update
 private void Start()
 {
     escapeMenu = GameObject.FindObjectOfType <EscapeMenu>();
 }
예제 #33
0
 // Start is called before the first frame update
 void Start()
 {
     em      = GameObject.Find("MenuHandler").GetComponent <EscapeMenu>();
     tmpText = this.gameObject.GetComponent <TextMeshProUGUI>();
     timer   = this.transform.GetChild(0).GetComponent <TextMeshProUGUI>();
 }
예제 #34
0
 public static void Toggle()
 {
     EscapeMenu.SetActive(!EscapeMenu.show);
 }