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!
using UnityEngine;
using System.Collections;
public class TestBox2 : MonoBehaviour {
void OnTriggerEnter2D(Collider2D c)
{
if ("Box1" == "six")
{
Application.LoadLevel ("DragDrop_Lvl_2");
}
else {
Application.Quit ();
}
}
}