Open chriscansler opened 1 year ago
I think this needs to be ShipExploded?.Invoke() - it is missing the "?" basically.
Before: if (Health <= 0) ShipExploded.Invoke();
if (Health <= 0) ShipExploded.Invoke();
After: if (Health <= 0) ShipExploded?.Invoke();
if (Health <= 0) ShipExploded?.Invoke();
I think this needs to be ShipExploded?.Invoke() - it is missing the "?" basically.
Before:
if (Health <= 0) ShipExploded.Invoke();
After:
if (Health <= 0) ShipExploded?.Invoke();