private void DestroyPlayer() { Disable(); Destroy?.Invoke(_playerModel.CurrentScore); _playerView.DestroyPlayer(); _playerViewUI.DestroyPlayer(); _playerView = null; _playerViewUI = null; _playerModel = null; }
public PlayerController(PlayerModel playerModel, PlayerView playerView, PlayerViewUI playerViewUI) { _playerModel = playerModel; _playerView = playerView; _playerViewUI = playerViewUI; }
void Awake() { instance = this; }