Exemplo n.º 1
0
    void OnMouseDown()
    {
        if (EventSystem.current.IsPointerOverGameObject())
        {
            return;
        }

        if (!buildManager.CanBuild)
        {
            Debug.Log("Select A Wipen");
            return;
        }

        if (turrent != null)
        {
            Debug.Log("Cant Biuld threr");
            return;
        }

        buildManager.BuildTurrentOn(this);
    }