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

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