コード例 #1
0
    void Start()
    {
        planetUI.SetActive(true);
        homeUI.SetActive(false);

        planetGenerator = GetComponent <PlanetGenerator>();
        factions        = planetGenerator.GenerateFactions();
        terra           = planetGenerator.GenerateTerra();

        //Guardem la terra del principi
        terraAnterior = terra.Copy();

        poolControler = GetComponent <PoolControler>();
        poolControler.CreatePool(InitialPoolNumber);

        laser1.SetActive(false);
        laser2.SetActive(false);

        StartCoroutine(StartRound());
    }