Quelques trucs pour structuer
This commit is contained in:
parent
af46b49095
commit
1165e50bb5
15 changed files with 245 additions and 2 deletions
20
Assets/Scripts/Unit.cs
Normal file
20
Assets/Scripts/Unit.cs
Normal 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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue