2019年5月7日 星期二

WEEK12 +1notes

碰撞測試






using System.Collections;
using System.Collections.Generic;
using UnityEngine;

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

    // Update is called once per frame
    float x=0;
    void Update()
    {
   
 
    }
    void OnTriggerEnter(Collider collision)
    {
        print("collision");
    }
}



沒有留言:

張貼留言