something fishy about my code

Hi guys,
this is my code:

void Update () 
{
    ControllPlayer();
}


	public void ControllPlayer()
	{
		if(controlsActive)
		{
            // movement
			float moveHorizontal = Input.GetAxisRaw (moveHorizontal_plug);
			float moveVertical = Input.GetAxisRaw (moveVertical_plug);

			Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical);
			
            transform.Translate(movement.normalized * movementSpeed * Time.deltaTime, Space.World);

			if(moveHorizontal != 0 || moveVertical != 0)
			{
				transform.rotation = Quaternion.LookRotation(movement);
			}

            // animations
            if (movement != Vector3.zero)
            { animation.CrossFade(run_anim); }
            else
            { animation.CrossFade(idle_anim); }

            if (Input.GetButtonDown(fireBtn_1_plug)) { animation.Blend(castSpellDirect_anim); }
            else if (Input.GetButtonDown(fireBtn_2_plug)) { animation.Blend(castSpellAoE_anim); }
            else if (Input.GetButtonDown(fireBtn_3_plug)) { /* animation.Blend(castSpellAoE_anim); */ }
            else if (Input.GetButtonDown(fireBtn_4_plug)) { /* animation.Blend(castSpellAoE_anim); */ }
		}
	}

I know this will sound weird, but I have a bad feeling when I look at my newest creation. It works just fine and all, but still I think something is wrong with how I coded this out. Can anybody suggest how to improve this script? For example how to nest the if-else statements better?

In addition to the recommendations of richyrich in his comment, I would advise you to look into Mecanim instead of using the legacy animation system. Unity is determined to move away from legacy animations towards using Mecanim for everything.

Unity Answers is really meant for technical questions, rather than generic coding aesthetics. However, now you’re here…

You’re right that the code doesn’t look right. You have inconsistent if formatting, zero meaningful comments and an incorrect spelling of Control. If the bottom if statement gets much better, a switch statement might improve.

See also: Common C# Coding Conventions | Microsoft Learn