Exemple #1
0
 private void HandleOnPickedUp(PickUp item, PlayerComponent playerComponent) => pickUpsInRange.Remove(item);
 private void HandlePlayerJoined(PlayerComponent player)
 {
     player.SpawnPoint = spawnPoints[Mathf.Min(player.PlayerId, spawnPoints.Length)];
     player.Respawn();
 }
        private void Start()
        {
            PlayerComponent player = GetComponentInParent <PlayerComponent>();

            playerPickUp = player.GetComponentInChildren <PlayerPickUp>();
        }