here's the code I'm using:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class follow : MonoBehaviour
{
public Transform follow_target;
void Upate()
{
transform.position = new Vector3(follow_target.position.x, transform.position.y, follow_target.position.z);
}
}
now here are the t$$anonymous$$ngs i need help with:
1. why won't it work? I've set it a target and applied to a Game Object, other methods use the same code... why doesn't it work for me?
2. how can I add a "speed value" so it doesn't go to said position instantly but instead has a smooth transition?
↧