I have code which looks like this in a NetworkBehaviour:
When I call anything on syncWorldCells (.Clear(),...
SyncListStruct: SyncList not initialized
Code (csharp):
- public struct WorldCell {
- public int x;
- public int y;
- public int terrain;
- this.terrain = terrain;
- }
- }
- public class SyncWorldCells : SyncListStruct<WorldCell> { }
- private SyncWorldCells syncWorldCells = new SyncWorldCells();
SyncListStruct: SyncList not initialized