Strange error... Please help!

I get this error with my code:

Assets/Scripts/Animations/PlayerControl.js(14,16): BCE0089: Type ‘PlayerControl’ already has a definition for ‘Main()’.

The strange thing is that i don’t have “main” written anywhere.
Please help!

code:

#pragma strict

// private var hasAxe : boolean = false;

// private var canSwing : boolean = true;
// private var isSwinging : boolean = false;
// var swingTimer : float = 0.7;

// private var controller : CharacterController;
// private var playerGUI : PlayerGUI;

// function Start()
{
hasAxe = true;
controller = GameObject.Find(“First Person Controller”).GetComponent(CharacterController);
playerGUI = GameObject.Find(“First Person Controller”).GetComponent(PlayerGUI);
}

// function Update()
{
//If we aren’t moving and if we aren’t swinging, then we idle!

if(controller.velocity.magnitude <= 0 && isSwinging == false)
{
GetComponent.().Play(“Idle”);
GetComponent.()[“Idle”].wrapMode = WrapMode.Loop;
GetComponent.()[“Idle”].speed = 0.2;
}

//If we’re holding shift and moving, then sprint!

if(controller.velocity.magnitude > 0 && Input.GetKey(KeyCode.LeftShift))
{
GetComponent.().Play(“Sprint”);
GetComponent.()[“Sprint”].wrapMode = WrapMode.Loop;
}

//WOODCUTTING SECTION
if(hasAxe == true && canSwing == true)
{
if(Input.GetMouseButtonDown(0))
{
//Stamina reduction applied to the PlayerGUI script
playerGUI.staminaBarDisplay -= 0.1;

//Swinging animation
GetComponent.().Play(“Swing”);
GetComponent.()[“Swing”].speed = 2;
isSwinging = true;
canSwing = false;
}
}

if(canSwing == false)
{
swingTimer -= Time.deltaTime;
}

if(swingTimer <= 0)
{
swingTimer = 1;
canSwing = true;
isSwinging = false;
}
}

Use code tags on the forum so people can read your code
https://forum.unity.com/threads/using-code-tags-properly.134625/

Why are you commenting out all the function declarations?

Also UnityScript (JavaScript) is deprecated in Unity and is in the process of being removed. Since you’re apparently just learning it, I’d suggest learning C# instead.

I commented them out just to test some stuff. I will use to code tags from now on. Thanks for reply!