コード例 #1
0
ファイル: Exit.cs プロジェクト: Inha024/Tilt_game_2d
 void OnTriggerEnter2D(Collider2D col)
 {
     Tilt.SetYouWinToTrue();
     if (col.name == "Goal")
     {
         Destroy(gameObject, .4f);
         Debug.Log("You Win!");
     }
 }
コード例 #2
0
ファイル: Exit.cs プロジェクト: Inha024/Ball_tilt_2d
 void OnTriggerEnter2D(Collider2D col)
 {
     Tilt.SetYouWinToTrue();
 }