private void Awake() { Instance = this; mainCamera = Camera.main; livesText.text = "Health " + startAmountOfHealth; coinsText.text = "Coins " + startNumberOfCoins; coins = startNumberOfCoins; lives = startAmountOfHealth; SetUpHealthBars(); sellPanelScreenBounds = RectTransformExtensions.CalculateScreenBounds(towerPanel, canvasScaler); }
private void Awake() { cam = Camera.main; windowRectTransform = towerWindow.GetComponent <RectTransform>(); windowScreenBound = RectTransformExtensions.CalculateScreenBounds(towerWindow, canvasScaler); }