IEnumerator updates()
    {
        yield return(new WaitForSeconds(0.2f));

        if (movingObject.GetComponent <Rigidbody>().velocity.magnitude == 0f && ballSpeed.GetComponent <Rigidbody>().velocity.magnitude <= 0f)
        {
            if (Server.isServer)
            {
                Server.showTurn = true;
            }
            else
            {
                Client.showTurnServer = true;
            }
            StartCoroutine(turnMenu.YourturnMenu());
            if (PlayerPrefs.GetInt("Mode", 0) == 1)
            {
                dragSystem.Shot = false;
            }
            else if (PlayerPrefs.GetInt("Mode", 0) == 5)
            {
                Server.shot = false;
            }
        }
        yield break;
    }
    private void BlueTeamReset()
    {
        if (PlayerPrefs.GetInt("Mode", 0) != 4)
        {
            try
            {
                foreach (GameObject obj in players)
                {
                    obj.GetComponent <Transform>().localPosition = obj.GetComponent <SelectionOffline>().getOrigin;
                }

                if (PlayerPrefs.GetInt("Mode", 0) != 5)
                {
                    dragSystem.CurrentTurn = 0;
                }
                else
                {
                    TurnMenuOffline.currentTurn = 0;
                    if (Server.isServer)
                    {
                        Server.UpdateCurrentTurn();
                        Server.UpdateSkillPos();
                    }
                }

                StartCoroutine(turnMenu.YourturnMenu());
                if (blueCD == 0)
                {
                    PlayerPrefs.SetInt("BlueCD", 5);
                }
            }
            catch (Exception e)
            {
                //Bugs?
                //Debug.Log(e);
            }
        }
    }