I have this basic code
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class InfinityMove : MonoBehaviour {
public float speed = 1.1f;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
transform.Translate(Vector3.forward * (speed) * Time.deltaTime);
}
}
But all it does is just move forward, I was wondering how to get it to stop walking after my cutscene animations have stop playing?