mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-27 06:20:17 +00:00
16 lines
531 B
C#
16 lines
531 B
C#
using SanAndreasUnity.Net;
|
|
using SanAndreasUnity.Utilities;
|
|
|
|
namespace SanAndreasUnity.Behaviours
|
|
{
|
|
public class SpawnHandler
|
|
{
|
|
public virtual bool GetSpawnPosition(Player player, out TransformDataStruct transformData)
|
|
{
|
|
if (null == World.Cell.Instance || World.Cell.Instance.HasExterior)
|
|
return SpawnManager.GetSpawnPositionFromFocus(out transformData);
|
|
else
|
|
return SpawnManager.GetSpawnPositionFromInteriors(out transformData);
|
|
}
|
|
}
|
|
}
|