约定和语法
Tutorial
Beginner
+0XP
5 mins
404
Unity Technologies

1. 约定和语法
using UnityEngine;
using System.Collections;
public class BasicSyntax : MonoBehaviour
{
void Start ()
{
Debug.Log(transform.position.x);
if(transform.position.y <= 5f)
{
Debug.Log ("I'm about to hit the ground!");
}
}
}