Exemplo n.º 1
0
 private void Start()
 {
     gameManager = GetComponentInParent <MinigameManager>();
     subscribeToEvents();
 }
Exemplo n.º 2
0
 private void Start()
 {
     gameManager = GetComponentInParent <MinigameManager>();
     rigidbody2d = GetComponent <Rigidbody2D>();
     rigidbody2d.AddForce(StartForce, ForceMode2D.Impulse);
 }