Quelques trucs pour structuer

This commit is contained in:
Crizomb 2024-12-21 18:35:07 +01:00
parent af46b49095
commit 1165e50bb5
15 changed files with 245 additions and 2 deletions

20
Assets/Scripts/Unit.cs Normal file
View file

@ -0,0 +1,20 @@
using Unity.VisualScripting;
using UnityEngine;
public class Unit : MonoBehaviour
{
[SerializeField] public HealthHandler healthHandler;
[SerializeField] public AttackHandler attackHandler;
void Start()
{
// Null safety enjoyers things
Debug.Assert(healthHandler != null);
Debug.Assert(attackHandler != null);
}
}