Week 14
碰撞後show文字
期末進度更新
藉由碰撞產生文字版
(也可產生圖片)
.
.
.
code
GameObject realBoard=null;
public GameObject board;
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");
if(realBoard==null) realBoard = Instantiate(board);
public GameObject board;
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");
if(realBoard==null) realBoard = Instantiate(board);
//藉由碰撞後產生文字板並show出
}
.
.
.
.
.
.
沒有留言:
張貼留言