2011年11月5日 星期六

如何設定為子物件

簡單又直接的問題

public Transform fatherOb;

private void Start() {
     transform.parent = fatherOb;
}

沒了

倒過來說,就是把對方設定成父物件就好了

沒有留言:

張貼留言