using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Var : MonoBehaviour
{
public GameObject player;
public Animator ani;
public Transform myTrans;// Start is called before the first frame updatevoidStart(){
Debug.Log(myTrans.position.x);// 在 Unity 中拖拽自身的 Transform 到 myTrans 中// 这样通过 myTrans.position.x 就可以显示 x 的坐标了}// Update is called once per framevoidUpdate(){}}