Пример #1
0
 public void EntityOnClick(LivingThing thing)
 {
     EntityScrollList.Definition.SetActive(true);
     EntityScrollList.Header.SetActive(true);
     EntityScrollList.NothingSelected.SetActive(false);
     GameObject.Find("EntityName").GetComponent <Text>().text = thing.getName();
     GameObject.Find("EntityDef").GetComponent <Text>().text  = thing.getDefinition();
 }
Пример #2
0
    private void OnMouseDown()
    {
        string name        = livingThing.getName();
        string description = livingThing.getDefinition();

        GameObject.Find("PopupName").GetComponent <Text>().text        = name;
        GameObject.Find("PopupDescription").GetComponent <Text>().text = description;
        if (!World.getExplored().Contains(livingThing))
        {
            World.getExplored().Add(livingThing);
        }
    }