コード例 #1
0
        public void StartLevel(GameStarter starter, int entrance_number)
        {
            if (_playerInstance != null)
            {
                GameObject.Destroy(_playerInstance);
            }

            _playerInstance = GameObject.Instantiate(_playerPrefab, starter.transform.position, starter.transform.rotation);
        }
コード例 #2
0
        public void NotifyLevelStarted(GameStarter starter, int entrance_number)
        {
            _gameStarter           = starter;
            _startedEntranceNumber = entrance_number;

            _uiManager.Initialize();
            _beaconManager.Initialize();
            _modifiedContentManager.InitializeByEntrance(entrance_number, _winRequiredPassCount);
            _modifiedContentManager.ModifyContentByProgress(_levelWinCount);

            _playerHandler.StartLevel(starter, entrance_number);
            PlayerInteractions.WasKey = false;
        }