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