Newer
Older
TheVengeance-Project-IADE-Unity2D / Assets / Scripts / Player / UpdateLevel.cs
@Rackday Rackday on 18 Aug 414 bytes Project Added
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class UpdateLevel : MonoBehaviour
{
    //File
    private PlayerLevel playerLevel;

    //Text
    public Text levelText;

    void Start()
    {
        //File
        playerLevel = FindObjectOfType<PlayerLevel>();
    }

    void Update()
    {
        levelText.text = "" + playerLevel.Level;
    }
}