Example #1
0
    // Start is called before the first frame update
    void Start()
    {
        m_spawnTime      = m_defaultSpawnTime;
        m_astroidTexture = m_textureGenerator.GenerateTexture(256, 256, 100f);

        m_planet.Init();
        m_currentAstroidSpawnerAngle = m_planet.m_angle + m_astroidSpawnerAngleDeviation;

        StartCoroutine(MaybeSpawnAProblem());
    }