Esempio n. 1
0
    public IEnumerable <string> getTooltip()
    {
        List <string> lst = new List <string>();

        if (Input.GetAxis("Help") > 0)
        {
            if (activeOutline == null)
            {
                lst.Add("[Target] + [Build] create outline");
            }
            if (activeOutlineItem != null)
            {
                lst.Add("[Target] new point\n");
            }
            if (activeOutlineItem != null && activeOutline != null && activeOutline.Count() > 2)
            {
                lst.Add("[Build] close outline\n");
            }
            if (activeOutline != null && activeOutlineItem == null && activeBuilding != null)
            {
                lst.Add("[Build] build\n");
            }
        }
        return(lst);
    }