28 lines
649 B
C#
28 lines
649 B
C#
using UnityEngine;
|
|
|
|
public class GameplayBootstrap : MonoBehaviour
|
|
{
|
|
[SerializeField] private Transform CameraPosition;
|
|
[SerializeField] private EnemySpawner Spawner;
|
|
[SerializeField] private Transform PlayerTransform;
|
|
|
|
private void Awake()
|
|
{
|
|
if (!BootstrapperState.MainBootstraped)
|
|
{
|
|
SceneLoader.LoadScene("Bootstrap");
|
|
return;
|
|
}
|
|
|
|
GameplayManager.PlayerTransform = PlayerTransform;
|
|
|
|
|
|
CamerasManager.CamerasPivot.position = CameraPosition.position;
|
|
CamerasManager.CamerasPivot.rotation = CameraPosition.rotation;
|
|
|
|
Spawner.Initialize();
|
|
|
|
|
|
}
|
|
}
|