コード例 #1
0
    // Use this for initialization
    void Start()
    {
        GameTextType gameTextVal = XKGlobalData.GetGameTextMode();

        //gameTextVal = GameTextType.English; //test.
        switch (gameTextVal)
        {
        case GameTextType.Chinese:
            XunZhangTexture = XunZhangTexture_Ch;
            break;

        case GameTextType.English:
            XunZhangTexture = XunZhangTexture_En;
            break;
        }

        switch (PlayerSt)
        {
        case PlayerEnum.PlayerOne:
            InstanceOne = this;
            break;

        case PlayerEnum.PlayerTwo:
            InstanceTwo = this;
            break;
        }
        XunZhangBJ.SetActive(false);
        XunZhangUITexture.gameObject.SetActive(false);
    }
    // Use this for initialization
    void Start()
    {
        switch (PlayerSt)
        {
        case PlayerEnum.PlayerOne:
            InstanceOne = this;
            break;

        case PlayerEnum.PlayerTwo:
            InstanceTwo = this;
            break;
        }
        XunZhangBJ.SetActive(false);
        XunZhangUITexture.gameObject.SetActive(false);
    }
コード例 #3
0
    void EndPlayerKillNumCartoon()
    {
        if (IsEndPlayerKillNumCartoon)
        {
            return;
        }
        IsEndPlayerKillNumCartoon = true;
        Debug.Log("Unity:" + "EndPlayerKillNumCartoon...");

        XKGlobalData.GetInstance().StopAudioJiFenGunDong();
        if (XkGameCtrl.IsPlayGamePOne)
        {
            XunZhangZPCtrl.GetInstanceOne().ShowPlayerXunZhang();
        }

        if (XkGameCtrl.IsPlayGamePTwo)
        {
            XunZhangZPCtrl.GetInstanceTwo().ShowPlayerXunZhang();
        }
    }
コード例 #4
0
    [RPC] void NetCtrlSendClientLoadGameLevel()
    {
        if (Network.peerType != NetworkPeerType.Client)
        {
            return;
        }

        if (Application.loadedLevel == (int)GameLevel.Movie)
        {
//			GameModeCtrl.GetInstance().ServerCallClientLoadingGame();
        }
        else
        {
            XunZhangZPCtrl.IsShouldStopJiFenPanel = true;
            if (XunZhangZPCtrl.IsOverPlayerZPXunZhang)
            {
                XunZhangZPCtrl.GetInstanceOne().CheckLianJiIsShouldStopJiFenPanel();
            }
        }
    }
    [RPC] void NetCtrlSendClientLoadGameLevel()
    {
        if (Network.peerType != NetworkPeerType.Client)
        {
            return;
        }

        if (SceneManager.GetActiveScene().buildIndex == (int)GameLevel.Movie)
        {
            GameModeCtrl.GetInstance().ServerCallClientLoadingGame();
        }
        else
        {
            XunZhangZPCtrl.IsShouldStopJiFenPanel = true;
            if (XunZhangZPCtrl.IsOverPlayerZPXunZhang)
            {
                XunZhangZPCtrl.GetInstanceOne().CheckLianJiIsShouldStopJiFenPanel();
            }
        }
    }