예제 #1
0
    private void LoadPlayerSpawner()
    {
        playerSpawnManager = FindObjectOfType <PlayerSpawnManager>().gameObject;

        if (playerSpawnManager == null)
        {
            PlayerSettings playerSettings = gameManager.playerSettings;
            playerSpawnManager = Instantiate(playerSettings.playerSpawnManager, transform.position, Quaternion.identity);
        }

        ISpawnManager spawnManager = playerSpawnManager.GetComponent <ISpawnManager>();

        spawnManager.InitialiseSpawner();
        print("Scene Controller >> Loaded Player Spawn Manager");
    }