void Start() { // Set external scripts. playerAnimationScript = transform.GetComponent <playerAnimation>(); playerCombatScript = transform.GetComponent <playerCombat>(); playerMovementScript = transform.GetComponent <playerMovement>(); levelManagerScript = GameObject.FindGameObjectWithTag("LevelManager").GetComponent <LevelManager>(); if (!enemy) { print("WARNING: You must set one enemy (the PC character) for this script in the Inspector View!"); } }
// Start is called before the first frame update void Start() { currentHealth = maxHealth; PA = sword.GetComponent <playerCombat>(); }