Exemple #1
0
    public ConstructionRequests(Vector3 pos)
    {
        GameObject g = GameObject.Instantiate(ConstructionManager.ConstructablePrefab);

        g.transform.position = pos;
        constr = g.GetComponent <Constructable>();
        ConstructionManager.opened.Add(this);
        ConstructionManager.UpdateMissionsQuery();
        go = g;
    }
 void Start()
 {
     gameObject.name += " " + prefabType.ToString();
     ConstructionManager.UpdateMissionsQuery();
 }