diff --git a/Assets/Scripts/GameOver.cs b/Assets/Scripts/GameOver.cs index bf12516c1d0ce5077a5d58702050344d5bd0e7f5..3b0182015744bbfdf66323e2112eefe418c30b79 100644 --- a/Assets/Scripts/GameOver.cs +++ b/Assets/Scripts/GameOver.cs @@ -29,10 +29,6 @@ public class GameOver : MonoBehaviour if (instance == null) { instance = FindObjectOfType<GameOver>(); - if (instance == null) - { - Debug.LogError("GameOver instance not found in the scene."); - } } return instance; } diff --git a/Assets/Scripts/Managers/CutsceneManager.cs b/Assets/Scripts/Managers/CutsceneManager.cs index 6820ac01919205fc3fbbfc734f3de9261354e645..4cfa40dcf3c6c05b18b606494ff7017b378c1299 100644 --- a/Assets/Scripts/Managers/CutsceneManager.cs +++ b/Assets/Scripts/Managers/CutsceneManager.cs @@ -19,10 +19,6 @@ public class CutsceneManager : MonoBehaviour if (instance == null) { instance = FindObjectOfType<CutsceneManager>(); - if (instance == null) - { - Debug.LogError("CutsceneManager instance not found in the scene."); - } } return instance; } diff --git a/Assets/Scripts/Managers/SaveManager.cs b/Assets/Scripts/Managers/SaveManager.cs index 9f69ecd1ffe0f226f144f170be179b2a970892ab..f7b9817fd2ecd00a92be4ab557308f1569f4d3d4 100644 --- a/Assets/Scripts/Managers/SaveManager.cs +++ b/Assets/Scripts/Managers/SaveManager.cs @@ -67,13 +67,11 @@ public class SaveManager : MonoBehaviour // Path to the save.json string filePath = $"{folderPath}/{data.saveDataName}.{fileFormat}"; - Debug.Log("Path: " + filePath); // Write JSON to file File.WriteAllText(filePath, json); Debug.Log("Game saved to: " + filePath); - Debug.Log("Gold: " + PlayerGold.GetGoldAmount() + ", Quest ke " + (QuestManager.GetQuestIndex() + 1)); StatisticsManager.Instance.SaveCount(); } diff --git a/Assets/Scripts/Managers/StatisticsManager.cs b/Assets/Scripts/Managers/StatisticsManager.cs index c88d13fcbba162369ff1b45ca4c69cb5ea72c706..d494f90d8c06bbf81983dc04c73abc72c008bd4f 100644 --- a/Assets/Scripts/Managers/StatisticsManager.cs +++ b/Assets/Scripts/Managers/StatisticsManager.cs @@ -23,10 +23,6 @@ public class StatisticsManager : MonoBehaviour if (instance == null) { instance = FindObjectOfType<StatisticsManager>(); - if (instance == null) - { - Debug.LogError("StatisticsManager instance not found in the scene."); - } } return instance; } diff --git a/Assets/Scripts/Pet/AttackPetAttack.cs b/Assets/Scripts/Pet/AttackPetAttack.cs index 34066efaf5df52434a7daacb018be607b73be0e3..bcec45915e73265ea7a0f59de4263776473d34c3 100644 --- a/Assets/Scripts/Pet/AttackPetAttack.cs +++ b/Assets/Scripts/Pet/AttackPetAttack.cs @@ -87,7 +87,7 @@ public class AttackPetAttack : MonoBehaviour if (other.gameObject.tag == targetTag && CheckTargetInList(other.gameObject)) { enemies.Remove(other.gameObject); - Debug.Log("Enemy removed"); + // Debug.Log("Enemy removed"); if (enemies.Count == 0) { isAttacking = false; diff --git a/Assets/Scripts/Pet/PetDamageMovement.cs b/Assets/Scripts/Pet/PetDamageMovement.cs index 9d1d5f83b05b51ed6fb5fa482f95fc8e269ecd0e..71612c4d20ff1f5fb76d8b750d2f518fa219a90d 100644 --- a/Assets/Scripts/Pet/PetDamageMovement.cs +++ b/Assets/Scripts/Pet/PetDamageMovement.cs @@ -49,7 +49,7 @@ public class PetDamageMovement : MonoBehaviour if(owner.tag != "Player") { float distanceToPlayer = Vector3.Distance(transform.position, player.transform.position); if(distanceToPlayer <= runRadius) { - Debug.Log("Pet Damage Running"); + // Debug.Log("Pet Damage Running"); Vector3 directionRun = (transform.position - player.transform.position).normalized; destinationVar = transform.position + directionRun * 10; } diff --git a/Assets/Scripts/Player/OnAttack.cs b/Assets/Scripts/Player/OnAttack.cs index 51f70d9fe5daf0f74994dde406f3a046f622c45a..83233c7c13bfe785affd3aa976e1cf3efbcf297f 100644 --- a/Assets/Scripts/Player/OnAttack.cs +++ b/Assets/Scripts/Player/OnAttack.cs @@ -19,12 +19,10 @@ public class OnAttack : MonoBehaviour } void AttackBegin() { - Debug.Log("Attack Begin"); attacking = true; } void AttackEnd() { - Debug.Log("Attack End"); attacking = false; } } diff --git a/Assets/Scripts/Player/PlayerMovement.cs b/Assets/Scripts/Player/PlayerMovement.cs index 4203c97d48aed2c441409878241784df7189bd5c..57eb2abf3132923aba2cab80f902318c0057941a 100644 --- a/Assets/Scripts/Player/PlayerMovement.cs +++ b/Assets/Scripts/Player/PlayerMovement.cs @@ -89,7 +89,7 @@ public class PlayerMovement : MonoBehaviour float vertical = Input.GetAxis("Vertical"); float moveSpeed = speed; - //Debug.Log("horizontal: " + horizontal + " vertical: " + vertical); + // Debug.Log("horizontal: " + horizontal + " vertical: " + vertical); // set the direction direction = transform.right * horizontal + transform.forward * vertical; @@ -173,7 +173,7 @@ public class PlayerMovement : MonoBehaviour if (Input.GetKey(KeyCode.Space) && jumpAllowed) { // add force to the player - Debug.Log("Jump"); + // Debug.Log("Jump"); playerAnimator.SetTrigger("JumpUp"); rb.AddForce(Vector3.up * jumpForce, ForceMode.Impulse); } diff --git a/Assets/Scripts/Shop/Shopkeeper.cs b/Assets/Scripts/Shop/Shopkeeper.cs index 3123be596e10b3ff6992316e697c0a5b3667d35f..e329e1fc239270c8f935dc0ac7c69af0130ea25c 100644 --- a/Assets/Scripts/Shop/Shopkeeper.cs +++ b/Assets/Scripts/Shop/Shopkeeper.cs @@ -107,7 +107,7 @@ public class Shopkeeper : MonoBehaviour { timerAlert.text = time.ToString(); isShopOpen = true; - Debug.Log("opening shop"); + Debug.Log("Opening Shop"); while(time > 0) { yield return new WaitForSeconds(1f);