Beispiel #1
0
    private IEnumerator Record(PlayerRecorder playerRecorder, PlayerController playerController)
    {
        _controller.PlayBackOtherDuplicatePlayerInteracts(this);
        playerRecorder.enabled = true;
        playerRecorder.StartRecording();
        playerController.StartCloneControl(_controller);
        yield return(new WaitForSeconds(_duration));

        playerController.StopCloneControl();
        _recordings            = playerRecorder.StopRecording();
        playerRecorder.enabled = false;
    }