public void OnExitAI()
    {
        isMouseOver  = false;
        wasMouseOver = true;
        OnMouseOverTile?.Invoke(false, affiliation);
        if (affiliation == Player.None)
        {
            if (activeGamestate == GameState.PLAYERO)
            {
                text.text      = "";
                newTextColor   = Color.white;
                newButtonColor = Color.black;
            }
            else if (activeGamestate == GameState.PLAYERX)
            {
                text.text      = "";
                newTextColor   = Color.black;
                newButtonColor = Color.white;
            }
        }
        if (!playAnimation)
        {
            text.fontSize = 111;
        }

        if (glitchFontOnHover != null)
        {
            StopCoroutine(glitchFontOnHover);
        }
        isTextGlitching = false;
    }
    public void OnEnterM()
    {
        if (gameController.PlayerState != activeGamestate)
        {
            return;
        }

        isMouseOver = true;
        OnMouseOverTile?.Invoke(true, affiliation);
        if (affiliation == Player.None)
        {
            if (activeGamestate == GameState.PLAYERO)
            {
                text.text      = Player.O.ToString();
                newTextColor   = Color.black;
                newButtonColor = Color.white;
            }
            else if (activeGamestate == GameState.PLAYERX)
            {
                text.text      = Player.X.ToString();
                newTextColor   = Color.white;
                newButtonColor = Color.black;
            }
        }
    }
 public void OnEnterAI(bool target = false)
 {
     if (target)
     {
         OnAIselection?.Invoke(transform.position);
     }
     isMouseOver = true;
     OnMouseOverTile?.Invoke(true, affiliation);
     if (affiliation == Player.None)
     {
         if (activeGamestate == GameState.PLAYERO)
         {
             text.text      = Player.O.ToString();
             newTextColor   = Color.black;
             newButtonColor = Color.white;
         }
         else if (activeGamestate == GameState.PLAYERX)
         {
             text.text      = Player.X.ToString();
             newTextColor   = Color.white;
             newButtonColor = Color.black;
         }
     }
 }