void Start() { graalsCollect = GetComponent <GraalsCollect>(); playerHealthPoints = GetComponent <PlayerHealth>(); Time.timeScale = 0; keysText.transform.position = new Vector3(0.075f * Screen.width, 0.925f * Screen.height, 0); graalsText.transform.position = new Vector3(0.925f * Screen.width, 0.925f * Screen.height, 0); introductionText.transform.position = new Vector3(0.5f * Screen.width, 0.825f * Screen.height, 0); winText.transform.position = new Vector3(0.5f * Screen.width, 0.825f * Screen.height, 0); loseText.transform.position = new Vector3(0.5f * Screen.width, 0.825f * Screen.height, 0); playerHealth.transform.position = new Vector3(0.925f * Screen.width, 0.075f * Screen.height, 0); miniMap.transform.position = new Vector3(0.075f * Screen.width, 0.175f * Screen.height, 0); playButton.transform.position = new Vector3(0.5f * Screen.width, 0.58f * Screen.height, 0); playAgainButton.transform.position = new Vector3(0.5f * Screen.width, 0.58f * Screen.height, 0); quitButton.transform.position = new Vector3(0.5f * Screen.width, 0.42f * Screen.height, 0); playAgainButton.SetActive(false); winText.SetActive(false); loseText.SetActive(false); mapRawImage.SetActive(false); sceneIsReloaded = false; }
void Awake() { graalsCollect = GetComponent <GraalsCollect>(); playerHealthPoints = GetComponent <PlayerHealth>(); }