Player isn't reacting to OnTriggerEnter

Ok so, I had a 2D Platformer game…im working on a speed boost that applies to the player whenever he walks in a polygon collider (Collider is set to OnTrigger)
Another important thing to know the player gameobject is tagged as : “Player”
Heres my code :

using UnityEngine;
using System.Collections;

public class SpeedBoostScript : MonoBehaviour {

	// Vars
	public float OnBoostChangeSpeedTo = PlatformerCharacter2D.maxSpeed;


	void Start()
	{
		 
	}
	
	// Update is called once per frame
	void Update ()
	{}



		void OnTriggerEnter(Collider other)			//Checks if player entered the SpeedBoost collider.
		{
			if (other.tag == "Player")				//Vereflies its the player who enters.
			{
				OnBoostChangeSpeedTo = 15f; 		//Changing maxSpeed to Boost Mode.
			}
		}


		void OnTriggerExit(Collider other)			//Checks if Player exits the collider, 
		{
			if (other.tag == "Player")
			{
				OnBoostChangeSpeedTo = 10;
			}
		}



	}

Its porbably very easy to fix, im new to C#
the problem is that Ingame whenever the player walks through the collider nothing happends, its not even showing me the Speed changes from 10 to 15 on unity display…
like theres no code at all…

  1. Does your player object has a RididBody2D attached to it?

  2. Did you attach your script to the trigger area?

  3. For 2D colliders, rigidbodies and such, you need to use OnTriggerEnter2D and OnTriggerExit2D. Probably that’s why it’s not working.