Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- public abstract class Weapon : MonoBehaviour
- {
- [SerializeField] private string _label;
- [SerializeField] private int _price;
- [SerializeField] private Sprite _icon;
- [SerializeField] private bool _isBuyed = false;
- [SerializeField] protected Bullet Bullet;
- public string Label => _label;
- public int Price => _price;
- public Sprite Icon => _icon;
- public bool IsBuyed => _isBuyed;
- public abstract void Shoot(Transform shootPoint);
- public void Buy()
- {
- _isBuyed = true;
- }
- }
Add Comment
Please, Sign In to add comment