顯示具有 05160655_羅聖閔 標籤的文章。 顯示所有文章
顯示具有 05160655_羅聖閔 標籤的文章。 顯示所有文章

2019年6月11日 星期二

2019年4月9日 星期二

WEEK08

測試其中作業
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class sss : MonoBehaviour
{
    public GameObject myBall;
    // Start is called before the first frame update
    void Start()
    {
       
    }

    // Update is called once per frame
    float x=0;
    void Update()
    {
        myBall.transform.position = new Vector3(x,0,0);
        x+=0.01f;
    }
    private void OnTriggerEnter(Collider other)
    {
        print("touch");     
    }

}
////目前有問題