Example #1
0
    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);
    }
Example #2
0
 private void Awake()
 {
     cam = Camera.main;
     windowRectTransform = towerWindow.GetComponent <RectTransform>();
     windowScreenBound   = RectTransformExtensions.CalculateScreenBounds(towerWindow, canvasScaler);
 }