16 lines
309 B
C#
16 lines
309 B
C#
using UnityEngine;
|
|
|
|
namespace DDD
|
|
{
|
|
public interface ISpawnPointProvider
|
|
{
|
|
Vector3 GetSpawnPoint();
|
|
}
|
|
|
|
public class SpawnPointProvider : ISpawnPointProvider
|
|
{
|
|
private Vector3 _spawnPoint = new(5f, 0f, 4f);
|
|
|
|
public Vector3 GetSpawnPoint() => _spawnPoint;
|
|
}
|
|
} |