we
This commit is contained in:
@@ -41,8 +41,11 @@ public class GunThrown : MonoBehaviour
|
||||
void Update()
|
||||
{
|
||||
//transform.position = Vector3.MoveTowards(transform.position, TargetPosition, 10 * Time.deltaTime);
|
||||
targetRotation = Quaternion.Euler (-20f, currentRotation.y, currentRotation.z);
|
||||
transform.rotation = Quaternion.RotateTowards(transform.rotation, targetRotation , -1);
|
||||
if (Time.timeScale == 1)
|
||||
{
|
||||
targetRotation = Quaternion.Euler(-20f, currentRotation.y, currentRotation.z);
|
||||
transform.rotation = Quaternion.RotateTowards(transform.rotation, targetRotation, -0.8f);
|
||||
}
|
||||
|
||||
if (transform.position == TargetPosition)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user