Import first minecraft scene + other scripts fixes

This commit is contained in:
Crizomb 2024-12-22 16:19:32 +01:00
parent 1165e50bb5
commit 6a897fabfc
103 changed files with 273043 additions and 45 deletions

View file

@ -4,16 +4,16 @@ using UnityEngine;
public class Unit : MonoBehaviour
{
[SerializeField] public HealthHandler healthHandler;
[SerializeField] public AttackHandler attackHandler;
[field: SerializeField] public Rigidbody Body { get; private set; }
[field: SerializeField] public HealthHandler Health { get; private set; }
[field: SerializeField] public AttackHandler Attack { get; private set; }
void Start()
{
// Null safety enjoyers things
Debug.Assert(healthHandler != null);
Debug.Assert(attackHandler != null);
Debug.Assert(Body != null);
Debug.Assert(Health != null);
Debug.Assert(Attack != null);
}