1
This commit is contained in:
21
Assets/Artists/Scripts/Scenes/PlayerSpawnPoint.cs
Normal file
21
Assets/Artists/Scripts/Scenes/PlayerSpawnPoint.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BITFALL.Scenes
|
||||
{
|
||||
public class PlayerSpawnPoint : MonoBehaviour
|
||||
{
|
||||
private void Start()
|
||||
{
|
||||
PlayerSpawnPointService._spawnPoints.Add(this);
|
||||
destroyCancellationToken.Register(Dispose);
|
||||
}
|
||||
private void Dispose()
|
||||
{
|
||||
PlayerSpawnPointService._spawnPoints.Remove(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user