Newer
Older
HardPoint-Project-Abertay-University-Unity3D / Assets / Scripts / WeaponUI.cs
@Rackday Rackday on 18 Aug 365 bytes Project Added
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class WeaponUI : MonoBehaviour
{
    [SerializeField] private WeaponScript ws;
    [SerializeField] private Image t;
    

    // Update is called once per frame
    void Update()
    {
        t.sprite = ws.weapons[ws.currentWeapon].displaySprite;
    }
}