-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The functionality to playback the movements done by a player is added. Now after doing some movements and pressing the button plays back all the inputs in an sequential order.
- Loading branch information
1 parent
d34f721
commit 19e7279
Showing
8 changed files
with
490 additions
and
33 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
public class PlayRecording : MonoBehaviour | ||
{ | ||
public TestingMovement _player; | ||
// Start is called before the first frame update | ||
void Start() | ||
{ | ||
_player = GameObject.FindGameObjectWithTag("Player").GetComponent<TestingMovement>(); | ||
} | ||
|
||
// Update is called once per frame | ||
public void ChangeRecording() | ||
{ | ||
_player.recording = false; | ||
_player.StartPlayback(); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.