Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.E))
     {
         OnStandCommand?.Invoke();
     }
 }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     Initialize(sendFrameReadyEvents: false);
     videoPlayer.playOnAwake = false;
     videoPlayer.isLooping   = false;
     standUpClip.SetAnimationClip(videoPlayer);
     ChangeState(new VStandingState(this));
     OnStandCommand?.Invoke();
 }