大修
This commit is contained in:
@@ -16,7 +16,7 @@ namespace Lean.Pool
|
||||
{
|
||||
var rigidbody = GetComponent<Rigidbody>();
|
||||
|
||||
rigidbody.velocity = Vector3.zero;
|
||||
rigidbody.linearVelocity = Vector3.zero;
|
||||
rigidbody.angularVelocity = Vector3.zero;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Lean.Pool
|
||||
{
|
||||
var rigidbody2D = GetComponent<Rigidbody2D>();
|
||||
|
||||
rigidbody2D.velocity = Vector2.zero;
|
||||
rigidbody2D.linearVelocity = Vector2.zero;
|
||||
rigidbody2D.angularVelocity = 0.0f;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user