Add IStatModifier interface and CharacterWeaponsManager class
This commit is contained in:
12
Assets/Scripts/Interfaces/IStatModifier.cs
Normal file
12
Assets/Scripts/Interfaces/IStatModifier.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Data;
|
||||
|
||||
namespace Interfaces
|
||||
{
|
||||
public interface IStatModifier
|
||||
{
|
||||
void Apply(CharacterAttributes attributes);
|
||||
void Remove(CharacterAttributes attributes);
|
||||
|
||||
string Description { get; }
|
||||
}
|
||||
}
|
3
Assets/Scripts/Interfaces/IStatModifier.cs.meta
Normal file
3
Assets/Scripts/Interfaces/IStatModifier.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d0d6b61a392341739d65e2332f73560f
|
||||
timeCreated: 1752266227
|
12
Assets/Scripts/Systems/CharacterWeaponsManager.cs
Normal file
12
Assets/Scripts/Systems/CharacterWeaponsManager.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.Collections.Generic;
|
||||
using Sirenix.Serialization;
|
||||
using UnityEngine;
|
||||
using Weapons;
|
||||
|
||||
namespace Systems
|
||||
{
|
||||
public class CharacterWeaponsManager : MonoBehaviour
|
||||
{
|
||||
[OdinSerialize] private List<Weapon> equippedWeapons = new();
|
||||
}
|
||||
}
|
3
Assets/Scripts/Systems/CharacterWeaponsManager.cs.meta
Normal file
3
Assets/Scripts/Systems/CharacterWeaponsManager.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 359935f34c694f0dbd7cc727404824e9
|
||||
timeCreated: 1752266125
|
@@ -3,7 +3,7 @@ using UnityEngine;
|
||||
|
||||
namespace Weapons
|
||||
{
|
||||
public class AutoWeapon : Weapon, IWeapon
|
||||
public class AutoWeapon : Weapon
|
||||
{
|
||||
[SerializeField] private GameObject projectilePrefab;
|
||||
[SerializeField] private Transform firePoint;
|
||||
|
@@ -6,7 +6,7 @@ using UnityEngine;
|
||||
|
||||
namespace Weapons
|
||||
{
|
||||
public class MeleeAttack : Weapon, IWeapon
|
||||
public class MeleeAttack : Weapon
|
||||
{
|
||||
[SerializeField] private LayerMask targetMask;
|
||||
|
||||
|
Reference in New Issue
Block a user