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,19 @@
using Interfaces;
using UnityEngine;
namespace Weapons
{
public class AutoWeapon : Weapon, IWeapon
{
[SerializeField] private GameObject projectilePrefab;
[SerializeField] private Transform firePoint;
public override void Fire()
{
var projectile = Instantiate(projectilePrefab, firePoint.position, firePoint.rotation);
projectile.TryGetComponent<IDamageInflectorSetup>(out var inflector);
inflector?.Setup(character);
}
}
}