Hey everyone!
Lately I came across an idea I couldn’t realize on my own yet, sadly.
So in my little game you have to redraw pictures of symbols, which have several so-called tracing points (2D polygone collider) placed on important points of the symbols. Ingame the mouse can draw over these symbol-templates and the name of the overdrawn tracing point will appear in the console log. So far so good. Now the last complicate step is to add the functionality of checking the tracing points, if they actually got overdrawn in the right sequence.
Right now I have no idea how to realize that and hope someone kinda understand what I’m talking about and how a solution could look like.
Every symbol is a simple gameobject with 2D polygone collider and the image with the template on it. A second gameobject is the symbols child in the hierachy, which has the tracing points as children of the child. The tracing points have 2D ploygone collider, as already said above.
This is how the script for the tracing points looks like for the debug.log right now:
using UnityEngine;
using System.Collections;
public class TracingPoint : MonoBehaviour {
void OnMouseEnter (){
if (Input.GetMouseButton (0)) {
Debug.Log (name);
}
}
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
I thought about giving the first child a script for an gameobject array. Then I could drag and drop the children of it in there in the right order …sadly I have no idea if this thought is even near of a possible solution @_@ …just hope someone can help somehow.
Thank you in advance!!! ^ ^
Btw …if somethings is not clear pls ask!