void CheckSpawnDaoJuCom()
    {
        XKNpcSpawnDaoJu daoJuScript = GetComponent <XKNpcSpawnDaoJu>();

        if (daoJuScript == null)
        {
            return;
        }
        daoJuScript.SpawnAllDaoJu();
    }
示例#2
0
    void CheckSpawnDaoJuCom(PlayerEnum index)
    {
        XKNpcSpawnDaoJu daoJuScript = GetComponent <XKNpcSpawnDaoJu>();

        if (daoJuScript == null)
        {
            return;
        }
        //daoJuScript.SpawnAllDaoJu();
        daoJuScript.CreatSuiJiDaoJu(index);
    }
    void CheckSpawnDaoJuCom(PlayerEnum index)
    {
        if (XkGameCtrl.GetInstance().GetIsActiveAiPlayer() == true)
        {
            //Ai坦克被激活时,npc被击爆后不允许产生道具.
            return;
        }

        XKNpcSpawnDaoJu daoJuScript = GetComponent <XKNpcSpawnDaoJu>();

        if (daoJuScript == null)
        {
            return;
        }
        //daoJuScript.CreatSuiJiDaoJu(index);

        if (NpcScript != null && NpcScript.IsCaiPiaoZhanChe == false)
        {
            daoJuScript.SpawnAllDaoJu(index);
        }
    }