예제 #1
0
 private void OnCollisionEnter2D(Collision2D collision)
 {
     if (collision.gameObject.tag == GameController.PlayerTag)
     {
         GameController.FindInstance().EndGameAsFailure();
     }
 }
예제 #2
0
 private void Awake()
 {
     goalTrigger    = GetComponent <Collider2D>();
     gameController = GameController.FindInstance();
 }