/// <summary> /// 设置子弹是否进行碰撞检测 /// </summary> /// <param name="luaState"></param> /// <returns></returns> public static int SetBulletDetectCollision(ILuaState luaState) { EnemyBulletBase bullet = luaState.ToUserData(-2) as EnemyBulletBase; bool value = luaState.ToBoolean(-1); luaState.Pop(2); bullet.SetDetectCollision(value); return(0); }