void CheckWallState() { if (wallHealth > 0) { GetComponent <SpriteRenderer>().color = new Color(0, wallHealth / 100, 1); } else if (wallHealth <= 0) { GetComponent <SpriteRenderer>().color = new Color(0, 0, 0); lScene.LoadNewScene("Score"); } }
public void StartGame(int id) { StartCoroutine(_manager.LoadNewScene(id)); }