コード例 #1
0
 private void Start()
 {
     gameManager = GetComponentInParent <MinigameManager>();
     subscribeToEvents();
 }
コード例 #2
0
 private void Start()
 {
     gameManager = GetComponentInParent <MinigameManager>();
     rigidbody2d = GetComponent <Rigidbody2D>();
     rigidbody2d.AddForce(StartForce, ForceMode2D.Impulse);
 }