32bit_jam_conjure/Assets/Scripts/PlayerController.cs
2022-10-21 21:55:05 -04:00

27 lines
611 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : MonoBehaviour
{
private GrappleHook grappleScript;
private CharacterMovement movementScript;
// Start is called before the first frame update
void Start()
{
grappleScript = GetComponent<GrappleHook>();
movementScript = GetComponent<CharacterMovement>();
}
// Update is called once per frame
void Update()
{
}
public void Stun(float duration){
grappleScript.Stun(duration);
movementScript.Stun(duration);
}
}