-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjusted vector color for right and wrong answers
- Loading branch information
1 parent
14e72fb
commit b97f466
Showing
5 changed files
with
157 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
public class Illustrator : MonoBehaviour | ||
{ | ||
[SerializeField] private LineRenderer lineRenderer; | ||
[SerializeField] private MeshRenderer meshRenderer; | ||
[SerializeField] private Material rightAnswerMaterial; | ||
[SerializeField] private Material wrongAnswerMaterial; | ||
|
||
public void ApplyRightAnswerMat() | ||
{ | ||
meshRenderer.material = rightAnswerMaterial; | ||
lineRenderer.material = rightAnswerMaterial; | ||
} | ||
|
||
public void ApplyWrongAnswerMat() | ||
{ | ||
meshRenderer.material = wrongAnswerMaterial; | ||
lineRenderer.material = wrongAnswerMaterial; | ||
} | ||
|
||
public LineRenderer GetLineRenderer() | ||
{ | ||
return lineRenderer; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.