📜  刚体2d unity - C# 代码示例

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

代码示例3
Rigidbody2D rb; 

// Can use Awake
void Start()
{
    // Ataches the rigedbody that is on the gameObject to rb
    rb = GetComponent();
}