22 lines
393 B
C#
22 lines
393 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
|