自写输入系统
This commit is contained in:
@@ -13,10 +13,21 @@ namespace NBF
|
||||
_rigidbody = GetComponent<Rigidbody>();
|
||||
}
|
||||
|
||||
private void LateUpdate()
|
||||
{
|
||||
// BindPosition();
|
||||
}
|
||||
|
||||
private void FixedUpdate()
|
||||
{
|
||||
if (!target) return;
|
||||
_rigidbody.MovePosition(target.position);
|
||||
BindPosition();
|
||||
}
|
||||
|
||||
private void BindPosition()
|
||||
{
|
||||
// _rigidbody.MovePosition(target.position);
|
||||
_rigidbody.position = target.position;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user