Esempio n. 1
0
    private void Update()
    {
        Vector2 pos   = player.position;
        int     depth = Mathf.Abs((int)(pos.y - surfaceAltitude));

        //Updating resource manager so that every info can be found at one place
        ResourceManagement.instance.depthPoints = depth;

        //Update UI
        resourceUI.UpdateDepth(depth);
    }