mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 01:00:16 +00:00
add null check to DeathPositionWorld getter
This commit is contained in:
parent
532bbb7658
commit
39ad5862e9
@ -29,7 +29,9 @@ namespace QSB.DeathSync
|
|||||||
|
|
||||||
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