mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-04 02:47:22 +00:00
add null check to DeathPositionWorld getter
This commit is contained in:
parent
532bbb7658
commit
39ad5862e9
@ -28,8 +28,10 @@ namespace QSB.DeathSync
|
|||||||
private Vector3 _deathPositionRelative;
|
private Vector3 _deathPositionRelative;
|
||||||
|
|
||||||
public Transform DeathClosestAstroObject { get; private set; }
|
public Transform DeathClosestAstroObject { get; private set; }
|
||||||
public Vector3 DeathPositionWorld
|
public Vector3 DeathPositionWorld
|
||||||
=> DeathClosestAstroObject.TransformPoint(_deathPositionRelative);
|
=> DeathClosestAstroObject == null
|
||||||
|
? Vector3.zero
|
||||||
|
: DeathClosestAstroObject.TransformPoint(_deathPositionRelative);
|
||||||
public Vector3 DeathPlayerUpVector { get; private set; }
|
public Vector3 DeathPlayerUpVector { get; private set; }
|
||||||
public Vector3 DeathPlayerForwardVector { get; private set; }
|
public Vector3 DeathPlayerForwardVector { get; private set; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user