Пример #1
0
 private void Start()
 {
     SignalMachine.AddListener <DeathSignal>(OnDeath);
     SignalMachine.AddListener <NewScoreSignal>(OnScoreChange);
     SignalMachine.AddListener <NewLeaderboardScoreSignal>(OnHighScore);
 }
Пример #2
0
 private void Awake()
 {
     content.SetActive(false);
     SignalMachine.AddListener <NewBombCountSignal>(OnBombCount);
     SignalMachine.AddListener <NewScoreSignal>(OnScore);
 }