Changed player sprite
This commit is contained in:
@@ -12,7 +12,7 @@ public class GameManager : MonoBehaviour
|
||||
|
||||
public static GameManager instance { get; private set; }
|
||||
|
||||
public Sprite normalFace, sadFace, pogFace;
|
||||
// public Sprite normalFace, sadFace, pogFace;
|
||||
|
||||
|
||||
public Text timerTxt;
|
||||
@@ -80,13 +80,13 @@ public class GameManager : MonoBehaviour
|
||||
instance.gameOverPanel.SetActive(true);
|
||||
instance.gameStarted = false;
|
||||
|
||||
instance.player.GetComponent<SpriteRenderer>().sprite = instance.sadFace;
|
||||
// instance.player.GetComponent<SpriteRenderer>().sprite = instance.sadFace;
|
||||
}
|
||||
|
||||
public static void GameWon(){
|
||||
instance.gameStarted = false;
|
||||
instance.gameWonPanel.SetActive(true);
|
||||
instance.player.GetComponent<SpriteRenderer>().sprite = instance.pogFace;
|
||||
// instance.player.GetComponent<SpriteRenderer>().sprite = instance.pogFace;
|
||||
|
||||
instance.gameWon();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user