- 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;
- }
- }