コード例 #1
0
ファイル: GameMaster.cs プロジェクト: ronaldah/Game-Design
    public IEnumerator RespawnPlayer()
    {
        audioManager.PlaySound(spawnSoundName);
        yield return(new WaitForSeconds(spawnDelay));

        Instantiate(playerPrefab, spawnPoint.position, spawnPoint.rotation);
    }