// Use this for initialization void Start() { controllerRef = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>(); controlsRef = GameObject.FindGameObjectWithTag("PlayerReferences").GetComponent <RunJump>(); attackBoolRef = GameObject.FindGameObjectWithTag("PlayerReferences").GetComponent <PlayerAttacks>(); }
private void Start() { runJumpRef = GameObject.FindGameObjectWithTag("PlayerReferences").GetComponent <RunJump>(); _attacks = GameObject.FindGameObjectWithTag("PlayerReferences").GetComponent <PlayerAttacks>(); }