Exemplo n.º 1
0
 //This is for the answer that the choices go to
 void SetupAnswerObject(AnswerObject answer)
 {
     answer.SetSprite();
     answer.GetComponent <Collider>().isTrigger = true;
     //answer.GetComponent<Rigidbody>().bodyType = RigidbodyType2D.Dynamic;
     answer.tag = answerTag;
     answer.gameObject.layer = 0;
     answer.problemGenerator = this;
     answer.isMovable        = false;
     answer.transform.SetParent(stuffHolder);
 }
Exemplo n.º 2
0
 void SetVisual(AnswerObject solution)
 {
     if (showImage)
     {
         solution.SetSprite();
     }
     else
     {
         solution.SetTextMesh();
     }
 }