class MAGES::ComponentLibrary::Framework::SpawnPoint¶
Overview¶
A location in the world where the player can spawn. More…
class SpawnPoint: public MonoBehaviour
{
public:
// methods
static Transform GetDefault();
static Transform GetSecondary(int index);
static Transform[] GetAllSecondary();
};
Detailed Documentation¶
A location in the world where the player can spawn.
Methods¶
static Transform GetDefault()
Gets the default spawn point.
Returns:
The default spawn point if found.
static Transform GetSecondary(int index)
Gets a secondary spawn point based on the provided index. If no secondary spawn points are found, it will return the default spawn point.
Parameters:
index |
The index of a secondary spawn point (wrapped to be within array). |
Returns:
The spawn point transform, if any.
static Transform[] GetAllSecondary()
Gets all secondary spawn points. If no secondary spawn points are found, it will return the default spawn point.
Returns:
The spawn point transforms.