So I tried making a SyncListStruct that didn't work. So then I tried just doing SyncVar on the same Game Object and that didn't work. After checking each portion of code I found out why my SyncVar wasn't working and it turns out that it was because of the line that adds to my SyncStructList. Question is why?
Inside my RandomSpawnLocation method I have the line vPosList.Add(tempVpos); which seems to prevent SyncVar from working.
Why Does Adding to My SyncListStruct Break SyncVar?
Inside my RandomSpawnLocation method I have the line vPosList.Add(tempVpos); which seems to prevent SyncVar from working.
Code (CSharp):
- using UnityEngine;
- using System.Collections;...