void Start() { healthbar = GetComponent<FloatingHealthbar>(); health = maxHealth; player = GameObject.Find ("Player").transform; opponent = player.GetComponent<PlayerHealthbarController>(); }
void Start() { // Initalize required components animator = GetComponent<Animator>(); movementController = GetComponent<PlayerMovementController>(); //initalize the needed scripts script wpnManager = GetComponent <WeaponManager>(); playerHealth = GetComponent <PlayerHealthbarController>(); chargedRing.fillAmount = 0f; }