.
This commit is contained in:
@@ -15,13 +15,13 @@ public class GunThrown : MonoBehaviour
|
||||
{
|
||||
player = GameObject.Find("Player");
|
||||
TargetPosition = player.transform.position;
|
||||
transform.LookAt(player.transform.position);
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
transform.LookAt(player.transform);
|
||||
transform.rotation = Quaternion.Euler(transform.rotation.x + 55, transform.rotation.y, transform.rotation.z);
|
||||
|
||||
transform.position = Vector3.MoveTowards(transform.position, TargetPosition, 10 * Time.deltaTime);
|
||||
|
||||
if (transform.position == TargetPosition)
|
||||
|
||||
Reference in New Issue
Block a user