Exemplo n.º 1
0
    /// <
    /// summary>
    /// For unity eventTrigger
    ///
    /// </summary>
    private void PublicSpawnHelp()
    {
        if (hoverWindowMed == null)
        {
            hoverWindow    = FindObjectOfType <HoverWindow>();
            hoverWindowMed = FindObjectOfType <HoverWindowMed>();
        }

        if (hoverWindowMed == null)
        {
            return;
        }

        if (Category == Ca.Structure || Category == Ca.Shore || Category == Ca.Way ||
            //Category == Ca.Spawn ||
            HType == H.BuyRegion)
        {
            hoverWindow.ShowMsg(HType.ToString());
        }
        else if (HType == H.Person)
        {
            hoverWindow.ShowExplicitThis(Name);
        }
        //Construction Sign
        //bz if more than 6 he know how to build already
        else if (transform.name == "Construction" && BuildingPot.Control.Registro.AllBuilding.Count < 10)
        {
            hoverWindowMed.Show(MousePositionTowardsScreenCenter(), transform.name);
        }
        //Demolition Sign
        else if (transform.name == "Demolition")
        {
            hoverWindowMed.Show(MousePositionTowardsScreenCenter(), transform.name);
        }
    }
Exemplo n.º 2
0
    void SpawnHelp()
    {
        if (oldMsg == MyMsg())
        {
            return;
        }

        oldMsg = MyMsg();
        hoverWindow.ShowMsg(ReturnHoverPos(), MyMsg());
    }
Exemplo n.º 3
0
Arquivo: Hover.cs Projeto: naaturaz/SM
    private void SpawnHelp()
    {
        if (oldMsg == MyMsg())
        {
            return;
        }

        oldMsg = MyMsg();
        hoverWindow.ShowMsg(MyMsg());
    }
Exemplo n.º 4
0
    /// <
    /// summary>
    /// For unity eventTrigger
    ///
    /// </summary>
    private void PublicSpawnHelp()
    {
        var pos = Hoverable.MousePositionTowardsScreenCenter();

        if (IsAProductHover)
        {
            hoverWindow.ShowMsg(MyMsg());
        }
        else
        {
            hoverWindow.Show(MyMsg());
        }
    }
Exemplo n.º 5
0
    void SpawnHelp()
    {
        if (oldMsg == MyMsg())
        {
            return;
        }

        oldMsg = MyMsg();

        //hoverWindow.ShowMsg(ReturnHoverPos(), MyMsg());

        hoverWindow.ShowMsg(MoveItTowardsScreenCenter(transform.position), MyMsg());
    }