mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-17 05:18:27 +00:00
17 lines
531 B
C#
17 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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|