📜  如何改变重力统一 - 无论代码示例

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

代码示例1
// Four times as strong
Physics2D.gravity = new Vector2(0, Physics2D.gravity.y * 4); 

// Half the strength
Physics2D.gravity = new Vector2(0, Physics2D.gravity.y / 2);