public void AddCurrent()
    {
        factoryObjInfo = Content.transform.GetChild(CreatType).GetComponent <FactoryObjInfo>();
        if (factoryObjInfo.type == 0)
        {
            if ((factoryObjInfo.EnegyCost * CurrentCreat) < (m_playerController.m_bgInfo.Instance.Enegy))
            {
                CurrentCreat += 1;
            }
        }
        else
        {
            if ((factoryObjInfo.EnegyCost * CurrentCreat) < (m_playerController.m_bgInfo.Instance.Enegy) &&
                (factoryObjInfo.Mat_0Cost * CurrentCreat) < (m_playerController.m_bgInfo.Instance.Mat0) &&
                (factoryObjInfo.Mat_1Cost * CurrentCreat) < (m_playerController.m_bgInfo.Instance.Mat1) &&
                (factoryObjInfo.Mat_2Cost * CurrentCreat) < (m_playerController.m_bgInfo.Instance.Mat2)
                )
            {
                CurrentCreat += 1;
            }
            else
            {
                CurrentCreat = CurrentCreat;
            }
        }



        CurrentCreatText.text = CurrentCreat.ToString();
        Energy_Text.text      = (factoryObjInfo.EnegyCost * CurrentCreat).ToString();
        Mat_0_Text.text       = (factoryObjInfo.Mat_0Cost * CurrentCreat).ToString();
        Mat_1_Text.text       = (factoryObjInfo.Mat_1Cost * CurrentCreat).ToString();
        Mat_2_Text.text       = (factoryObjInfo.Mat_2Cost * CurrentCreat).ToString();
    }
    public void ShowBoard(int TypeNum)
    {
        CreatType             = TypeNum;
        factoryObjInfo        = Content.transform.GetChild(CreatType).GetComponent <FactoryObjInfo>();
        Energy_Text.text      = factoryObjInfo.EnegyCost.ToString();
        Mat_0_Text.text       = factoryObjInfo.Mat_0Cost.ToString();
        Mat_1_Text.text       = factoryObjInfo.Mat_1Cost.ToString();
        Mat_2_Text.text       = factoryObjInfo.Mat_2Cost.ToString();
        CurrentCreat          = 0;
        CurrentCreatText.text = CurrentCreat.ToString();

        Board.SetActive(true);
    }
    public void DesCurrent()
    {
        if (CurrentCreat > 0)
        {
            CurrentCreat -= 1;
        }
        else
        {
            CurrentCreat = 0;
        }
        CurrentCreatText.text = CurrentCreat.ToString();

        factoryObjInfo   = Content.transform.GetChild(CreatType).GetComponent <FactoryObjInfo>();
        Energy_Text.text = (factoryObjInfo.EnegyCost * CurrentCreat).ToString();
        Mat_0_Text.text  = (factoryObjInfo.Mat_0Cost * CurrentCreat).ToString();
        Mat_1_Text.text  = (factoryObjInfo.Mat_1Cost * CurrentCreat).ToString();
        Mat_2_Text.text  = (factoryObjInfo.Mat_2Cost * CurrentCreat).ToString();
    }