We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This needs to be anchored, out of the way, while still displaying the information needed.
The text was updated successfully, but these errors were encountered:
@gamingdynamo One possible fix would be to set the vector location of both bars in the ui manager start
using UnityEngine;
public class UIManager : MonoBehaviour { [SerializeField] private GameObject playerHealth; [SerializeField] private GameObject towerHealth; [SerializeField] private GameObject deathScreen; [SerializeField] private GameObject mainMenu; [SerializeField] private GameObject upgradeMenu; [SerializeField] private GameObject waveCounter; [SerializeField] private GameObject countDown;
private void Start() { // Move health bars to top left corner playerHealth.transform.position = new Vector3(200,386,0); towerHealth.transform.position = new Vector3(200,426,0); } public void EnableUi(string name) { if (name.Equals("PlayerHealth")) { playerHealth.active = true; } else if (name.Equals("TowerHealth")) { towerHealth.active = true; } else if (name.Equals("DeathScreen")) { deathScreen.active = true; } else if (name.Equals("MainMenu")) { mainMenu.active = true; } else if (name.Equals("UpgradeMenu")) { upgradeMenu.active = true; } else if (name.Equals("waves")) { waveCounter.active = true; countDown.active = true; } } public void DisableUi(string name) { if (name.Equals("PlayerHealth")) { playerHealth.active = false; } else if (name.Equals("TowerHealth")) { towerHealth.active = false; } else if (name.Equals("DeathScreen")) { deathScreen.active = false; } else if (name.Equals("MainMenu")) { mainMenu.active = false; } else if (name.Equals("UpgradeMenu")) { upgradeMenu.active = false; } else if (name.Equals("waves")) { waveCounter.active = false; countDown.active = false; } }
}
Sorry, something went wrong.
No branches or pull requests
This needs to be anchored, out of the way, while still displaying the information needed.
The text was updated successfully, but these errors were encountered: