From bae3d22054a9b01d05a87f97a77e59685684035f Mon Sep 17 00:00:00 2001 From: UVCLimHun Date: Thu, 17 Apr 2025 17:00:15 +0900 Subject: [PATCH 1/4] Update hello.cs --- Assets/hello.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Assets/hello.cs b/Assets/hello.cs index 0520336..077b1c5 100644 --- a/Assets/hello.cs +++ b/Assets/hello.cs @@ -4,11 +4,14 @@ using UnityEngine; public class hello : MonoBehaviour { + int count = 0; + string Hello = ""; // Start is called before the first frame update void Start() { Debug.Log("test for gpt code review"); Debug.Log("test2"); + up(count); } // Update is called once per frame @@ -16,4 +19,9 @@ public class hello : MonoBehaviour { } + + public int up(int o) + { + return o++; + } } From 1d3e1da3f42c7140bc672b7625589ff5e4d55dd6 Mon Sep 17 00:00:00 2001 From: UVCLimHun Date: Thu, 17 Apr 2025 17:42:38 +0900 Subject: [PATCH 2/4] Update hello.cs --- Assets/hello.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Assets/hello.cs b/Assets/hello.cs index 077b1c5..0f6e23c 100644 --- a/Assets/hello.cs +++ b/Assets/hello.cs @@ -6,12 +6,14 @@ public class hello : MonoBehaviour { int count = 0; string Hello = ""; + int cuntplus = 0; // Start is called before the first frame update void Start() { Debug.Log("test for gpt code review"); Debug.Log("test2"); up(count); + cuntplus++; } // Update is called once per frame @@ -24,4 +26,9 @@ public class hello : MonoBehaviour { return o++; } + + public void NotUse() + { + + } } From e7eb0618611aa2485bb0a72869ed949562a3ecd6 Mon Sep 17 00:00:00 2001 From: UVCLimHun Date: Thu, 17 Apr 2025 18:02:43 +0900 Subject: [PATCH 3/4] Update hello.cs --- Assets/hello.cs | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/Assets/hello.cs b/Assets/hello.cs index 0f6e23c..157040e 100644 --- a/Assets/hello.cs +++ b/Assets/hello.cs @@ -5,15 +5,13 @@ using UnityEngine; public class hello : MonoBehaviour { int count = 0; - string Hello = ""; - int cuntplus = 0; // Start is called before the first frame update void Start() { Debug.Log("test for gpt code review"); Debug.Log("test2"); - up(count); - cuntplus++; + count=Up(count); + Debug.Log(count); } // Update is called once per frame @@ -22,13 +20,9 @@ public class hello : MonoBehaviour } - public int up(int o) + public int Up(int o) { - return o++; - } - - public void NotUse() - { - + o++; + return o; } } From 659a5323ee40b617c0d8717e6f8b109d43feea1f Mon Sep 17 00:00:00 2001 From: UVCLimHun Date: Thu, 17 Apr 2025 18:04:43 +0900 Subject: [PATCH 4/4] Update hello.cs --- Assets/hello.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Assets/hello.cs b/Assets/hello.cs index 157040e..e78c365 100644 --- a/Assets/hello.cs +++ b/Assets/hello.cs @@ -2,16 +2,14 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; -public class hello : MonoBehaviour +public class Hello : MonoBehaviour { - int count = 0; + int numberOfUpdates = 0; // Start is called before the first frame update void Start() { - Debug.Log("test for gpt code review"); - Debug.Log("test2"); - count=Up(count); - Debug.Log(count); + numberOfUpdates = IncreaseCount(numberOfUpdates); + Debug.Log(numberOfUpdates); } // Update is called once per frame @@ -20,7 +18,7 @@ public class hello : MonoBehaviour } - public int Up(int o) + public int IncreaseCount(int o) { o++; return o;