MainGame.Start C# (CSharp) Méthode

Start() public méthode

public Start ( ) : void
Résultat void
    void Start()
    {
        GameIsRunning = false;
        style = new GUIStyle("label");
        style.alignment = TextAnchor.MiddleCenter;
        style.normal.textColor = Color.white;
        style.font = (Font)Resources.Load("Iceland-Regular");
        style.fontSize = 60;
        score = 0;
    }

Usage Example

Exemple #1
0
        private void _startSinglePlayer()
        {
            MainGame game = null;

            game = new MainGame();
            game.OnNavigateBack += game_OnNavigateBack;
            game.NetworkClient   = null;
            MainGame.BackwardNavigationService = this.NavigationService;
            game.Start();
            startButton.IsEnabled = true;
        }
All Usage Examples Of MainGame::Start