Пример #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;
 }
Пример #2
0
 private void OnEnable()
 {
     NS = target as NetSystem;
 }