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(); movementScript = GetComponent(); } // Update is called once per frame void Update() { } public void Stun(float duration){ grappleScript.Stun(duration); movementScript.Stun(duration); } }