// Use this for initialization void Start() { // Force our target framerate to 60 (at best) Application.targetFrameRate = 60; player = GameObject.Find("Player"); if (player == null) { Debug.Log("Player object need to be in scene!"); } playerLogic = player.GetComponent <PlayerLogicController>(); if (playerLogic == null) { Debug.Log("Player Object has no Logic Controller!"); } enemyLayouts = GetComponent <EnemyLayouts>(); if (StartingWave < 1) { StartingWave = 1; } highScoreViewer.LoadScores(); highScoreViewer.gameObject.SetActive(false); player.SetActive(true); ship_count = 3; score = 0; wave = StartingWave; highestScore = highScoreViewer.HighScoresManager.GetHighestScore(); HighScoreLabelValue.SetValue(highestScore, true); WaveLabelValue.SetValue(wave); ScoreLabelValue.SetValue(score); showCurrentShipsLeft(); StartWave(); }
// Use this for initialization void Start() { player = GetComponent <PlayerLogicController>(); transform.position = new Vector3(0, MinY, 0); }