Example #1
0
    public void SetSelfPosition()
    {
        //Setting the camera position
        Vector3 playerPosition = GetPosition();

        transform.position            = playerPosition;
        mainCamera.transform.position = new Vector3(playerPosition.x, playerPosition.y, -10);
        mainCamera.orthographicSize   = minZoom;
        cameraOffset = mainCamera.transform.position - transform.position;

        inventoryScript.CreateInventorySlots();
        inventoryScript.CreateStartingInventory();
        inventoryScript.GetItems();
        inventoryScript.GetTools();
        craftingScript.InstatiateCraftingUi();
    }