public void RegisterMissionLocalPlayerMissionItemsGameOptions(int playerId) { PlayerChoiceTracking playerChoices = GameObject.FindGameObjectWithTag("PlayerOptionsContainer").GetComponent <PlayerChoiceTracking>(); switch (playerId) { case 1: localPlayerMissionItems[0] = playerChoices.p1Item1; localPlayerMissionItems[1] = playerChoices.p1Item2; localPlayerMissionItems[2] = playerChoices.p1Item3; localPlayerHotel = playerChoices.p1Hotel; localPlayerCalcularCompra = playerChoices.p1CalcularCompra; localPlayerWorkingMemoryDigits = playerChoices.p1WorkingMemoryDigits; break; case 2: localPlayerMissionItems[0] = playerChoices.p2Item1; localPlayerMissionItems[1] = playerChoices.p2Item2; localPlayerMissionItems[2] = playerChoices.p2Item3; localPlayerHotel = playerChoices.p2Hotel; localPlayerCalcularCompra = playerChoices.p2CalcularCompra; localPlayerWorkingMemoryDigits = playerChoices.p2WorkingMemoryDigits; break; case 3: localPlayerMissionItems[0] = playerChoices.p3Item1; localPlayerMissionItems[1] = playerChoices.p3Item2; localPlayerMissionItems[2] = playerChoices.p3Item3; localPlayerHotel = playerChoices.p3Hotel; localPlayerCalcularCompra = playerChoices.p3CalcularCompra; localPlayerWorkingMemoryDigits = playerChoices.p3WorkingMemoryDigits; break; } }
public int getCharacterId() { PlayerChoiceTracking playerChoices = GameObject.FindGameObjectWithTag("PlayerOptionsContainer").GetComponent <PlayerChoiceTracking>(); return(playerChoices.localPlayerPlayerNumber); }
// Start is called before the first frame update void Start() { playerChoiceTracking = playerOptionsTracker.GetComponent <PlayerChoiceTracking>(); }