Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        buildPlacer = FindObjectOfType <BuildingPlacer>();
        grid        = buildPlacer.GetComponent <GridR>();
        request     = gameObject.GetComponent <Requester>();
        mesh        = gameObject.GetComponent <MeshRenderer>();

        notConstructed       = buildPlacer.notConstructed;
        finishedConstructing = buildPlacer.finishedConstructing;

        children = new List <Transform>();
        foreach (Transform child in gameObject.transform)
        {
            children.Add(child);
        }

        changeMesh(notConstructed);
        RoundManager.OnRoundTick += onTick;
        //Get a list of the actual physical buildings gameobjects
    }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     buildPlacer = FindObjectOfType <BuildingPlacer>();
     grid        = buildPlacer.GetComponent <GridR>();
 }