Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

SyncListStruct: SyncList not initialized

$
0
0
I have code which looks like this in a NetworkBehaviour:

Code (csharp):
  1.  
  2.   public struct WorldCell {
  3.      public int x;
  4.      public int y;
  5.      public int terrain;
  6.  
  7.      public WorldCell(FlatHexPoint point, int terrain) {
  8.        this.x = point.X;
  9.        this.y = point.Y;
  10.        this.terrain = terrain;
  11.      }
  12.    }
  13.    public class SyncWorldCells : SyncListStruct<WorldCell> { }
  14.    private SyncWorldCells syncWorldCells = new SyncWorldCells();
  15.  
When I call anything on syncWorldCells (.Clear(),...

SyncListStruct: SyncList not initialized

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>