Exemplo n.º 1
0
    GameObject ceilingTempObject; // tymczasowy obiekt stropu 2D, podgląd na czas rysowania

    void Start()
    {
        domaManager = DomaManager.Instance;

        polygonPoints = new List <Vector3>();

        material = Resources.Load("Materials/concrete3_material", typeof(Material)) as Material;
    }
Exemplo n.º 2
0
    void Start()
    {
        domaManager = DomaManager.Instance;
        activeFloor = domaManager.currentStatusDoma.activeFloor;

        area3D = GameObject.Find("3DArea");
        area2D = GameObject.Find("2DArea");
    }
Exemplo n.º 3
0
 void Start()
 {
     domaManager  = DomaManager.Instance;
     tagsToChange = new List <string>()
     {
         "Wall", "Ceiling", "Roof"
     };
 }
Exemplo n.º 4
0
    void Start()
    {
        domaManager = DomaManager.Instance;

        cube      = GameObject.CreatePrimitive(PrimitiveType.Cube);
        cube.name = "HoleCube";
        cube.GetComponent <Renderer>().material.color = Color.red;
        cube.transform.localScale = new Vector3(1f, 0.2f, 0.2f);
    }
Exemplo n.º 5
0
    bool endOverlap    = true; // pozwala kontrolować tylko jednokrotne wykonanie metody po ucieczce myszki z pola ściany

    // Start is called before the first frame update
    void Start()
    {
        domaManager       = DomaManager.Instance;
        currentStatusDoma = domaManager.currentStatusDoma;

        wall = currentStatusDoma.GetWallByGameObject2D(gameObject);

        _collider = GetComponent <PolygonCollider2D>();
    }
Exemplo n.º 6
0
    void Start()
    {
        transform.parent = target.transform;

        domaManager = DomaManager.Instance;

        Vector3 centralVector = domaManager.GetObjectPositionValue(target).CentralVector;
        //transform.localPosition = new Vector3(centralVector.x, 700f, centralVector.z - 300f);
        //GetComponent<Camera>().orthographicSize = 800f;
    }
Exemplo n.º 7
0
 private void Awake()
 {
     if (_instance != null && _instance != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         _instance = this;
     }
 }
Exemplo n.º 8
0
    private void Start()
    {
        domaManager  = DomaManager.Instance;
        allFunctions = new List <FunctionModel>();

        allFunctions.Add(new FunctionModel(drawWall, activateButtonDrawWall));
        allFunctions.Add(new FunctionModel(addHole, activateButtonAddHole));
        allFunctions.Add(new FunctionModel(drawDoor, activateButtonDrawDoor));
        allFunctions.Add(new FunctionModel(drawWindow, activateButtonDrawWindow));
        allFunctions.Add(new FunctionModel(drawCeiling, activateButtonDrawCeiling));
        allFunctions.Add(new FunctionModel(gableWall, activateButtonGableWall));
        allFunctions.Add(new FunctionModel(roof, activateButtonRoof));
    }
Exemplo n.º 9
0
    void Start()
    {
        domaManager = DomaManager.Instance;
        dropDown    = GetComponent <TMP_Dropdown>();

        dropDown.ClearOptions();
        dropDown.AddOptions(currentStatusDoma.appSystem.Floors.Select(x => x.Name).ToList());

        dropDown.onValueChanged.AddListener(delegate
        {
            dropDownValueChangedHandler(dropDown);
        });
    }
Exemplo n.º 10
0
    void Start()
    {
        domaManager = DomaManager.Instance;

        mouseCube      = GameObject.CreatePrimitive(PrimitiveType.Cube);
        mouseCube.name = "MouseCube";
        mouseCube.GetComponent <Renderer>().material.color = Color.blue;
        mouseCube.transform.localScale = new Vector3(0.2f, 0.2f, 0.2f);

        tagsToChange = new List <string>()
        {
            "Wall", "Ceiling", "Roof"
        };
    }
Exemplo n.º 11
0
    void Start()
    {
        transform.parent = target.transform;
        cam         = gameObject.GetComponent <Camera>();
        domaManager = DomaManager.Instance;

        var objectPositionValue = domaManager.GetObjectPositionValue(target);

        try
        {
            transform.localPosition = new Vector3(objectPositionValue.CentralVector.x + objectPositionValue.MaxDistanceFromCentral + distanceCameraToObjects, objectPositionValue.MaxPositionY / 1.5f, objectPositionValue.CentralVector.z);
            _lastCentralVector      = objectPositionValue.CentralVector;
        }
        catch
        {
        }

        transform.localEulerAngles = new Vector3(0, -90, 0);
    }
Exemplo n.º 12
0
    void Start()
    {
        print("DrawWall Start()");

        domaManager = DomaManager.Instance;
        activeFloor = currentStatusDoma.activeFloor;

        area3D = GameObject.Find("3DArea");
        area2D = GameObject.Find("2DArea");

        tempLineRenderer      = new GameObject();
        tempLineRenderer.name = "TempLineRender";
        tempLineRenderer.AddComponent <LineRenderer>();
        tempLineRenderer.GetComponent <LineRenderer>().startWidth = 0.2f;
        tempLineRenderer.GetComponent <LineRenderer>().endWidth   = 0.2f;
        tempLineRenderer.transform.parent = area2D.transform;

        lastPoint = Vector3.zero;

        materialType1 = Resources.Load("Materials/concrete_block_material", typeof(Material)) as Material;
        materialType2 = Resources.Load("Materials/airblock_material", typeof(Material)) as Material;

        material = materialType1;
    }
Exemplo n.º 13
0
 private void Start()
 {
     domaManager = DomaManager.Instance;
 }
Exemplo n.º 14
0
    void Start()
    {
        domaManager = DomaManager.Instance;

        polygonPoints = new List <Vector3>();
    }