Add new meta files and interfaces for project structure

This commit is contained in:
2025-07-11 21:46:14 +02:00
commit 43c1730ed5
3230 changed files with 1428743 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using System;
using Data;
using Interfaces;
using UnityEngine;
namespace Weapons
{
public abstract class Weapon : MonoBehaviour, IWeapon
{
private float timer;
[SerializeField] private float cooldown = 1f;
[SerializeField] protected Character character;
private void Update()
{
timer -= Time.deltaTime;
if (!(timer <= 0f)) return;
Fire();
timer = 1f / character.attributes.AttackSpeed;
}
public abstract void Fire();
}
}