private void Start() { // Initialize properties player = GetComponent <Rigidbody2D>(); playerAnimator = GetComponent <Animator>(); entityPopup = GetComponent <EntityPopupCreator>(); // Health health = maxHealth; playerHealthDisplay.UpdateCurrentHealth(health); playerHealthDisplay.UpdateMaxHealth(maxHealth); playerAnimator.SetFloat("PlayerHealth", health); // Update speed from Entity.cs speed = 4f; // Set the default gun as Zyka gun.UpdateGun("Zyka", projectileAttkPwrBonus); }