コード例 #1
0
    /// <summary>
    /// 设置子弹的消除抗性
    /// <para>bullet</para>
    /// <para>flag 不能被消除的标识</para>
    /// </summary>
    /// <param name="luaState"></param>
    /// <returns></returns>
    public static int SetBulletResistEliminatedFlag(ILuaState luaState)
    {
        EnemyBulletBase bullet = luaState.ToUserData(-2) as EnemyBulletBase;
        int             flag   = luaState.ToInteger(-1);

        luaState.Pop(2);
        bullet.SetResistEliminateFlag(flag);
        return(0);
    }