public void InitiatePlayerGUI() { gamePlayerProperties = GetComponent <GamePlayerProperties>(); gamePlayerMovement = GetComponent <GamePlayerMovement>(); gamePlayer = GetComponent <GamePlayer>(); healthText.text = gamePlayerProperties.startHealth.ToString(); fatigueText.text = gamePlayerProperties.startFatigue.ToString(); armorText.text = gamePlayerProperties.startArmor.ToString(); movementText.text = gamePlayerProperties.startSteps.ToString(); attacksText.text = gamePlayerProperties.startAttacks.ToString(); }
void Start() { isActive = false; hasPlayedThisRound = false; gamePlayerSetup = GetComponent <GamePlayerSetup>(); gamePlayerGameStatusGUIManager = GetComponent <GamePlayerGameStatusGUIManager>(); if (isLocalPlayer) { gamePlayerGUIManager = GetComponent <GamePlayerGUIManager>(); gamePlayerMovement = GetComponent <GamePlayerMovement>(); //Set player names } }