コード例 #1
0
        public override void Start()
        {
            // Initialization of the script.

            PlayerPrefab    = Content.Load <Prefab>("Player");
            EnemyShipPrefab = Content.Load <Prefab>("EnemyShip");
            HealthUpPrefab  = Content.Load <Prefab>("HealthUp");

            EnemySpawnInterval  = 1f;
            EnemySpawnCountdown = 3f;

            HealthUpSpawnInterval  = 10f;
            HealthUpSpawnCountdown = HealthUpSpawnInterval;

            ScoreText     = GameHUD?.RootElement.FindVisualChildOfType <TextBlock>("ScoreText");
            HealthText    = GameHUD?.RootElement.FindVisualChildOfType <TextBlock>("HealthText");
            HighScoreText = GameHUD?.RootElement.FindVisualChildOfType <TextBlock>("HighScoreText");

            BackgroundMusicInstance = BackgroundMusic.CreateInstance();

            //OriginalCameraPosition =

            Initialize();
        }