private static T instance;
    public static T Instance
    {
        get => instance;
    }
    protected virtual void Awake()
    {
        if (instance != null)
            Destroy(gameObject);
        else
            instance = (T)this;
    }
    private void LateUpdate()
    {
        print(GameManager.Instance);
        txt_Lv.text = "Level    "+  GameManager.Instance.playerStates.characterData.curLv.ToString("00");
        UpdateExp();
        UpdateHP();
    }
场景有两个Manager的时候才会报错