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; }
private void OnEnable() { NS = target as NetSystem; }