rifaterdemsahin / aif

Adaptive Intelligence Framework
5 stars 7 forks source link

Images load and get to to the question flow #179

Open rifaterdemsahin opened 6 years ago

rifaterdemsahin commented 6 years ago

Image load and gets to a question. Load images from resources Image displays after a delay the text of the image shows up

rifaterdemsahin commented 6 years ago

image

unity should be aware of this folder

rifaterdemsahin commented 6 years ago

image

rifaterdemsahin commented 6 years ago

image

rifaterdemsahin commented 6 years ago

using System.Collections; using System.Collections.Generic; using UnityEngine;

public class ResourceLoader : MonoBehaviour {

public GameObject myImage;
public GameObject myWord;
// Use this for initialization
void Start () {
    var sprite = Resources.Load<Sprite>("2_dog");
    myImage.GetComponent<SpriteRenderer>().sprite = sprite;
    myWord.GetComponent<TextMesh>().text = sprite.name;

}

// Update is called once per frame
void Update () {

}

}