コード例 #1
0
 //These are the choices
 void SetupSolutionObject(AnswerObject solution, Vector3 startPos)
 {
     solution.SetMovable(true);
     solution.SetTextMesh();
     solution.isAnswer         = true;
     solution.problemGenerator = this;
     solution.startPos         = startPos;
     solution.transform.SetParent(stuffHolder);
 }
コード例 #2
0
 void SetVisual(AnswerObject solution)
 {
     if (showImage)
     {
         solution.SetSprite();
     }
     else
     {
         solution.SetTextMesh();
     }
 }