Browse Source

Fix compiler issue, Order person

Nick Steyer 2 năm trước cách đây
mục cha
commit
3a2de3230e

+ 2 - 4
Assembly-CSharp.csproj

@@ -8,8 +8,7 @@
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
     <ProductVersion>10.0.20506</ProductVersion>
     <SchemaVersion>2.0</SchemaVersion>
-    <RootNamespace>
-    </RootNamespace>
+    <RootNamespace></RootNamespace>
     <ProjectGuid>{4322513C-6AC2-9058-38C0-BCFE306751F6}</ProjectGuid>
     <OutputType>Library</OutputType>
     <AppDesignerFolder>Properties</AppDesignerFolder>
@@ -240,7 +239,6 @@
     <None Include="Assets\ZED\SDK\Helpers\Shaders\ZED_Utils.cginc" />
     <None Include="Assets\ZED\Examples\OpenCV ArUco Detection\Shaders\UnlitTrans.shader" />
     <None Include="Assets\ZED\Examples\Drone Shooter\Resources\Muzzleflash_FX\WFX_S Particle Add A8.shader" />
-    <None Include="Assets\smcs.rsp" />
     <None Include="Assets\ZED\SDK\Plugins\win64\sl_unitywrapper.dll" />
     <None Include="Assets\ZED\Examples\GreenScreen\Shaders\Outlined.shader" />
     <None Include="Assets\ZED\Examples\Planetarium\Resources\Self-Illumin.shader" />
@@ -997,4 +995,4 @@
   <Target Name="AfterBuild">
   </Target>
   -->
-</Project>
+</Project>

+ 1 - 1
Assets/StreetLight/PersonVisualizer.cs

@@ -36,7 +36,7 @@ public class PersonVisualizer : MonoBehaviour
     void Update()
     {
         int count = 0;
-        foreach (var person in PersonManager.Persons)
+        foreach (var person in PersonManager.Persons.OrderBy(p => p.Id))
         {
             GameObject sphere = spheres[count];
             sphere.transform.position = new Vector3(person.UnityPosition.x, person.UnityPosition.y, person.UnityPosition.z);

+ 0 - 1
Assets/StreetLight/Scripts/PositionCalculator.cs

@@ -1,7 +1,6 @@
 using Assets.StreetLight.Interfaces;
 using System.Collections.Generic;
 using UnityEngine;
-using OpenCvSharp;
 using System;
 using Unity.VisualScripting;
 using Assets.StreetLight.Serialization;