ArcadeRPG.Backpack.Hide C# (CSharp) Метод

Hide() публичный Метод

public Hide ( ) : void
Результат void
        public void Hide()
        {
            if (state == State.HIDE) { return; }
            else
            {
                backpackpic.ToString().Remove(0); // "converts" the whole screen to a "string" and "removes" it. "hiding" it
                state = State.HIDE;
            }
        }

Usage Example

Пример #1
0
        public void die() // user has died in a level. level will start over and a life will be decucted
        {
            livesRemaining--;
            if (!hasMoreLives()) // if the user has 0 more lives, game over
            {
                if (backpackmenu.isShowing())
                {
                    backpackmenu.Hide();
                }
                if (timex.isShowing())
                {
                    timex.Hide();
                }
                gameEnded = true;
                return;
            }

            LoadLevel(game_state.tile_engine.getCurrentLevel()); // restart if the user has more lives
        }
All Usage Examples Of ArcadeRPG.Backpack::Hide