コード例 #1
0
        void Spawn(LocationEntrance spawnPoint)
        {
            PlayerCharacter pc = InstantiatePlayer(spawnPoint.transform);

            _playerCharacterAnchor.SetReference(pc);

            spawnPoint.RunPlayerSpawnSequence(pc, HandleSpawnSequencesFinished);
        }
コード例 #2
0
        void Spawn(LocationEntrance spawnPoint)
        {
            PlayerCharacter pc = Instantiate(_playerPrefab, spawnPoint.transform.position, _playerPrefab.transform.rotation);

            spawnPoint.RunPlayerSpawnSequence(pc, HandleSpawnSequenceFinished);
        }