private void CheckPuzzleSolutions() { if (movePlayer.AreKeysCorrectlyBound()) { PlayerPrefs.SetInt("KeyBindsFixed", PlayerPrefs.GetInt("KeyBindsFixed", 0) + 1); if (logging) { Debug.Log("Key Binds Fixed"); } keyBindingsFixed = true; } if (LoadSpriteFromDisk.IsTransparent("Assets/Images/Wall.png") == false) { PlayerPrefs.SetInt("TileSetFixed", PlayerPrefs.GetInt("TileSetFixed", 0) + 1); if (logging) { Debug.Log("Tile Set Fixed"); } tileSetFixed = true; } if ((enemyStatus.attack == 0 ? int.MaxValue : (playerStatus.health / enemyStatus.attack)) >= (playerStatus.attack == 0 ? int.MinValue : (enemyStatus.health / playerStatus.attack))) { PlayerPrefs.SetInt("EntityStatsFixed", PlayerPrefs.GetInt("EntityStatsFixed", 0) + 1); if (logging) { Debug.Log("Entity Stats Fixed"); } entityStatsFixed = true; } }
private void Start() { Debug.Log($"Is wall transparent: {LoadSpriteFromDisk.IsTransparent("Assets/Images/Wall.png")}"); youDied.GetComponent <Canvas>().enabled = false; youDied.GetComponent <Animator>().enabled = false; var player = GameObject.FindGameObjectWithTag("Player"); this.playerStatus = player.GetComponent <Status>(); playerStatus.OnDead += OnPlayerDied; }