Files
Scampz/Assets/Scripts/GameManager/PlayerSpawnController.cs
Zenny 7a891a45f1 Add airship level
Fix default spawn issue
TODO: Fix issue with spawning when loading from other scenes
2022-08-30 01:48:01 -07:00

17 lines
428 B
C#

using UnityEngine;
public partial class PlayerSpawnController : MonoBehaviour
{
public GameObject Player;
[SerializeField]
private GameObject _playerPrefab;
[SerializeField]
private GameObject _spawnLocation;
private void Start()
{
Player = Instantiate(_playerPrefab);
Player.transform.position = _spawnLocation.transform.position;
Player.transform.rotation = _spawnLocation.transform.rotation;
}
}