Cleared off nullable warnings
This commit is contained in:
parent
179a3f7d22
commit
da9eefa00e
@ -36,9 +36,9 @@ public class Entity : MonoBehaviour {
|
||||
public Transform target;
|
||||
public EntityFlag entityType { get; protected set; }
|
||||
public Vector3 direction { get; set; }
|
||||
public Rigidbody2D rb { get; private set; }
|
||||
public Collider2D collider { get; private set; }
|
||||
[field: SerializeField]public SpriteRenderer renderer { get; private set; }
|
||||
public Rigidbody2D rb { get; private set; } = null!;
|
||||
public new Collider2D collider { get; private set; } = null!;
|
||||
[field: SerializeField]public new SpriteRenderer renderer { get; private set; }
|
||||
[SerializeField] GameObject halo;
|
||||
[SerializeField] protected Color deadColor = Color.red;
|
||||
[SerializeField] protected Color emptyColor = Color.grey;
|
||||
|
||||
@ -37,10 +37,11 @@ public class GameFlowManager : MonoBehaviour {
|
||||
float fadeStep = 0.02f;
|
||||
float fadingTimer;
|
||||
bool fadingIn = false;
|
||||
[field: SerializeField] TMP_Text startTxt;
|
||||
[field: SerializeField] TMP_Text endTxt;
|
||||
|
||||
public event Action<BaseState> stateChanged;
|
||||
[field: SerializeField] TMP_Text startTxt = null!;
|
||||
[field: SerializeField] TMP_Text endTxt = null!;
|
||||
|
||||
public event Action<BaseState>? stateChanged;
|
||||
|
||||
#region Unity Messages
|
||||
|
||||
|
||||
@ -11,14 +11,15 @@ public class MinionThrower : MonoBehaviour {
|
||||
[SerializeField] [Required]
|
||||
PlayerStats playerStats = null!;
|
||||
|
||||
public Entity[] minionPrefabs;
|
||||
public GameObject aimArrow;
|
||||
public Entity[] minionPrefabs = null!;
|
||||
public GameObject aimArrow = null!;
|
||||
|
||||
bool isInThrowMode;
|
||||
Vector2 throwDirection;
|
||||
MinionBar minionBar;
|
||||
VampireEntity vampireEntity;
|
||||
PlayerMovement movement;
|
||||
MinionBar minionBar = null!;
|
||||
VampireEntity vampireEntity = null!;
|
||||
PlayerMovement movement = null!;
|
||||
|
||||
float currentCooldownTimer;
|
||||
float currentInitialCooldown;
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@ public class PlayerMovement : MonoBehaviour {
|
||||
|
||||
[SerializeField] [field: Required]
|
||||
PlayerStats stats = null!;
|
||||
[SerializeField] GameObject globalCamera;
|
||||
[SerializeField] GameObject globalCamera = null!;
|
||||
|
||||
[field: Required]
|
||||
Rigidbody2D rb = null!;
|
||||
@ -18,8 +18,8 @@ public class PlayerMovement : MonoBehaviour {
|
||||
Vector2 moveDirection;
|
||||
BaseState currentState = null!;
|
||||
SafeZone? safeZone;
|
||||
VampireEntity vampireEntity;
|
||||
Animator animator;
|
||||
VampireEntity vampireEntity = null!;
|
||||
Animator animator = null!;
|
||||
public bool facingRight { get; private set; } = true;
|
||||
|
||||
bool lastJumpButton;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user