Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        Time.timeScale = 1;
        Application.targetFrameRate = 60;

        playerRB = Player.GetComponent <Rigidbody2D>();

        gameHandlerScript     = FindObjectOfType <GameHandler>();
        asteroidSpawnerScript = FindObjectOfType <GameAsteroidSpawner>();
        spawnZoneScript       = FindObjectOfType <SpawnZone>();
    }