Ejemplo n.º 1
0
 public override void Start()
 {
     Registry.Reg.Equipment = Equipment;
     ClientScene.RegisterPrefab(GamePlayer.gameObject, SpawnPlayerBrain, UnSpawn);
     NetworkServer.RegisterHandler <JoinMessage>(OnJoinGame);
     NetworkClient.RegisterHandler <JoinedMessage>(OnJoinedGame);
     base.Start();
     I = this;
 }
Ejemplo n.º 2
0
 private void OnEnable()
 {
     NS = target as NetSystem;
 }