1: var test_prefab : GameObject ;
2:
3: function Update ()
4: {
5: if(Input.GetMouseButtonDown(0))
6: {
7: Instantiate(test_prefab,test_prefab.transform.position,test_prefab.transform.rotation);
8: }
9:
10: }
標籤: 小技巧