Esempio n. 1
0
    void InitJiaoZhunZuoBiao()
    {
        if (JiaoZhunCrossImg == null || JiaoZhunCrossImg.enabled)
        {
            return;
        }
        Debug.Log("InitJiaoZhunZuoBiao!");
//				ZhunXingZB.Visible = false;
//				ZhunXingP1.Visible = false;
        XKPlayerCrossCtrl.SetAllCrossActive(false);
        IndexCrossJZ = 0;
        ChangeJiaoZhunPic();
        JiaoZhunCrossImg.enabled = true;

        if (CSampleGrabberCB.GetInstance() != null)
        {
            CSampleGrabberCB.GetInstance().InitJiaoZhunZuoBiao();
        }
    }
Esempio n. 2
0
    public void ChangeJiaoZhunPic()
    {
        if (!JiaoZhunCrossImg.enabled)
        {
            return;
        }

        switch (IndexCrossJZ)
        {
        case 0:
        case 1:
        case 2:
        case 3:
            JiaoZhunCrossImg.sprite = JiaoZhunCross[IndexCrossJZ];
            break;

        default:
            IndexCrossJZ             = 0;
            JiaoZhunCrossImg.enabled = false;
            XKPlayerCrossCtrl.SetAllCrossActive(true);
            break;
        }
    }