Пример #1
0
    /*  If we are currently selecting a unit, get the coordinates of where to place it.
     *  Tell the game that we are no longer selecing a unit for deployment
     *  Initialize telling the game to reset the visual effects of selecting a unit
     */
    private void OnMouseDown()
    {
        if (deployUnit && shopController.GetShopStatus() && !upgradeController.GetUpgradePanelStatus())
        {
            Vector2 coordinates = GetSquareClicked();

            AttemptToPlaceDefenderAt(coordinates);
            SetDeployUnitStatus(false);
            ResetSelectUnitForDeployment();
        }
    }