// Start is called before the first frame update

    void Update()
    {
        if (GetComponent <universe_generator>().generated)
        {
            valid_objects = GameObject.FindGameObjectWithTag("valid_final_objects").GetComponent <ValidObjects>();
            furthestGen   = GetComponent <universe_generator>().furthestGen;
            GenerateSystem();
        }
    }
Пример #2
0
 // Start is called before the first frame update
 void Start()
 {
     valid_objects = GameObject.FindGameObjectWithTag("valid_generation_objects").GetComponent <ValidObjects>();
     GenerateSystem(worldSize);
 }