I have a List of KeyCodes and also a list of Float which stores Time.time - startTime
I wanted so that my character can move based on the stored keys in list and press the buttons for how long it has been pressed when I recorded it. This is my code;
IEnumerator RelayInputs(){
for (int i = 0; i < keyList.Count; i++){
lastKey = keyList*;*
-
character.Move(lastKey);*
-
yield return new WaitForSeconds (0.5f);*
-
}*
-
}*
I haven’t added the StreamReader functions to read the keys from the .txt file
I may also need a guide on that.
Regards.