-
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.
- Loading branch information
Showing
14 changed files
with
550 additions
and
21 deletions.
There are no files selected for viewing
Binary file not shown.
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,84 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
using TMPro; | ||
|
||
public class DisplayScores : MonoBehaviour | ||
{ | ||
private int reputation; | ||
public TMP_Text reputationElement; | ||
|
||
private int sanityScore; | ||
public TMP_Text sanityScoreElement; | ||
|
||
public TMP_Text anarchistOrPacifist; | ||
// Start is called before the first frame update | ||
void Start() | ||
{ | ||
|
||
} | ||
|
||
// Update is called once per frame | ||
void Update() | ||
{ | ||
reputation = ScoreManager.instance.GetReputationScore(); | ||
reputationElement.text = "Reputation: " + reputation.ToString(); | ||
sanityScore = ScoreManager.instance.GetSanityScore(); | ||
sanityScoreElement.text = "Sanity Score: " + sanityScore.ToString(); | ||
|
||
if (sanityScore <= -40) | ||
{ | ||
if (reputation <= -40) | ||
{ | ||
//scared | ||
anarchistOrPacifist.text = "Heavy Anarchist"; | ||
} | ||
else | ||
{ | ||
//mixed | ||
anarchistOrPacifist.text = "Moderate Anarchist"; | ||
} | ||
} | ||
else if (sanityScore <= -20) | ||
{ | ||
if (reputation <= 5) | ||
{ | ||
//mixed | ||
anarchistOrPacifist.text = "Moderate Anarchist"; | ||
} | ||
else | ||
{ | ||
//neutral | ||
anarchistOrPacifist.text = "Neutral"; | ||
} | ||
} | ||
else if (sanityScore <= 0) | ||
{ | ||
if (reputation < 0) | ||
{ | ||
//netural | ||
anarchistOrPacifist.text = "Neutral"; | ||
} | ||
else | ||
{ | ||
//positive | ||
anarchistOrPacifist.text = "Moderate Pacifist"; | ||
|
||
} | ||
} | ||
else | ||
{ | ||
if (reputation <= 20) | ||
{ | ||
//positive | ||
anarchistOrPacifist.text = "Moderate Pacifist"; | ||
} | ||
else | ||
{ | ||
//very positive | ||
anarchistOrPacifist.text = "Heavy Pacifist"; | ||
} | ||
} | ||
|
||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.