I am using SyncLists and I notice they throw errors when I use them during the Awake() method. This seems to be new to 5.2. Anybody else having this problem?
The flow I'd like to achieve is:
-Instantiate object on server
-Set SyncVar's during server Awake()
-Spawn object on client. All SyncVar's should be set by the spawn so correct values are there when OnStartClient() is called... this is why I'm trying to set SyncVar's during Awake() and not Start()
SyncList not Initialized during Awake()
The flow I'd like to achieve is:
-Instantiate object on server
-Set SyncVar's during server Awake()
-Spawn object on client. All SyncVar's should be set by the spawn so correct values are there when OnStartClient() is called... this is why I'm trying to set SyncVar's during Awake() and not Start()
Code (csharp):
- using UnityEngine;
- using...