Esempio n. 1
0
 // can't use vanilla GetVehicle in OnPlayerModeChange after 06.11 update :(
 public static Vehicle getVehicle(this Player player) => player?player.GetComponentInParent <Vehicle>() : null;        // don't use null-conditional here
 // can't use vanilla GetVehicle in OnPlayerModeChange after 06.11 update :(
 public static Vehicle getVehicle(this Player player) => player.GetComponentInParent <Vehicle>();