I know That Translate will make it move but it doesn’t keep it in one place. if I have an arrow that has its Y position linked to a float variable than what do I use to keep it in one place?
Here is the script
private Sense SenseScript;
public Transform player;
private Transform EnemyGuy;
private float height = 0;
void Start()
{
SenseScript = player.GetComponent<Sense>();
EnemyGuy = SenseScript.closestEnemy;
}
// Update is called once per frame
void Update () {
height = EnemyGuy.position.y - transform.position.y;
if (height <= 330){
stabalize();
}
}
void stabalize ()
{
// I think It should Go here.
}
}