코드 작성 using UnityEngine; public class MyScript : MonoBehaviour { int score = 0; float speed = 5.0f; string playerName = "Player1"; bool isGameOver = false; void Start() { Debug.Log("Game started!"); if (score >= 100) { Debug.Log("You achieved a high score!")
; } else { Debug.Log("Keep playing to improve your score!"); } while (!
isGameOver) { MovePlayer(); CheckGameOver(); } DisplayFinalScore(); }.....
원문 링크 : 유니티 C# 기본 문법 정리 Unity Basic Code