Example #1
0
 private void Awake()
 {
     i = this;
     playButton.ClickFunc = () =>
     {
         onPlayButtonClicked?.Invoke();
     };
     restartButton.ClickFunc = () =>
     {
         onRestartButtonClicked?.Invoke();
         GameManager.i.RestartSimulation();
     };
     discardButton.ClickFunc = () =>
     {
         onDiscardButtonClicked?.Invoke();
     };
 }
Example #2
0
 void Awake()
 {
     Instance = this;
 }
Example #3
0
 private void Awake()
 {
     instance = this;
 }