Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     img       = this.GetComponentInChildren <Image>();
     uiText    = this.GetComponentInChildren <Text>();
     last      = FindObjectOfType <ClickRemove>();
     defHeight = img.rectTransform.sizeDelta.y;
 }
Example #2
0
    public void fail(ClickRemove click)
    {
        title       = click.name;
        information = click.description;

        information += "\n" + click.getRequirements();

        if (displaying)
        {
            anim.SetTrigger("Hide");
        }
        else
        {
            updateInfo();
        }

        displaying = true;

        anim.SetTrigger("Display");
    }
Example #3
0
 public void updateInfo(string information, ClickRemove last)
 {
     this.information = information;
     this.last        = last;
 }