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

SyncList in parent classes

$
0
0
Is this not possible? It throws "Synclist not initalized" errors although both OnStartServer methods are called properly.
Code (CSharp):
  1.  
  2. public class ComponentManager : NetworkBehaviour {
  3.     public SyncListBool componentState = new SyncListBool();
  4.     public override void OnStartServer() {
  5.         //...do stuff with the List, get "SyncList not initialized" error
  6.         base.OnStartServer();
  7.     }
  8. }
  9.  
  10. public void Ship : ComponentManager {
  11.     public override void OnStartServer() {...
SyncList in parent classes

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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