How to place 2D object to correct place?

Hello there, i’m doing a very simple math puzzle game. My idea, there were a question (image) and the answer box is an empty box which user will drag the correct answer(image) from the inventory to the box. Each level have 3 question. For example, 3 + 1 = ?. User will drag an answer(image) to the Box1. Then, user will click on the “Next” button. At this point, a script will check whether the answer (image) is assign correctly to the box or not. If yes, then a “Right” symbol will appeared next to the quetion and then it will proceed to the next level, if not. “Wrong” symbol will appeared next to the question and user must assign the answer until got the correct position. So my problem is, when i click on Next button, nothing happen. So can anyone help me? I attach some screenshot and my script for the button. Please dont bash as iam very new to Coding and Unity. Thanks!

48440-2.png

48442-1.png

using UnityEngine;
using System.Collections;

public class TestBox2 : MonoBehaviour {
	
	
	void OnTriggerEnter2D(Collider2D c)
	{    
		
		if ("Box1" == "six") 
		{
			Application.LoadLevel ("DragDrop_Lvl_2");
			
		}
		else  {
			Application.Quit ();
		}
		
		
	}
}

I don’t think it is feasible to try and help you with the given task right now. Instead, I recommend this very good introduction tutorial: Unity official live training - Coding for the absolute beginner

This video assumes no prior knowledge and gives you a good start. Next, you should search through the other tutorials and live trainings and do the assignments or follow the projects. It makes much more sense to follow along with a project first than to try and build your own.

Have fun and all the best!

Unity - Project Roll a Ball

Learn modules