📜  unity 拍摄脚本 2d - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:08.801000             🧑  作者: Mango

代码示例1
// add this variable to your Script, this is where you drag your prefab in the inspector
public GameObject bulletPrefab;

// Put this in your shoot function
Instantiate(bulletPrefab, GUNTRANSFORM, GUNTRANSFORM.rotation, transform);