//public override void OnBeginDrag(PointerEventData eventData) //{ // SymbolBeingDragged = gameObject; // _startPosition = transform.position; // _startParent = transform.parent; // GetComponent<CanvasGroup>().blocksRaycasts = false; // audioManager.StartPlayCoroutine(ID); //} public void SetSyllables(string syl1, string syl2) { Image1.sprite = databaseManager.GetImage(syl1); Image1.color = Color.black; Image2.sprite = databaseManager.GetImage(syl2); Image2.color = Color.black; Image3.color = Color.clear; }
// Use this for initialization void Start() { db = GameObject.Find("DatabaseManager").GetComponent <DatabaseManager>(); GameObject.Find("Image0").GetComponent <Image>().sprite = db.GetImage(db.GetSyllable(0).ImageName); GameObject.Find("Image1").GetComponent <Image>().sprite = db.GetImage(db.GetSyllable(1).ImageName); GameObject.Find("Image2").GetComponent <Image>().sprite = db.GetImage(db.GetSyllable(2).ImageName); GameObject.Find("Image3").GetComponent <Image>().sprite = db.GetImage(db.GetSyllable(3).ImageName); List <int> list1 = new List <int>(); list1.Add(1); list1.Add(2); list1.Add(3); List <int> list2 = new List <int>(); list2.Add(3); list2.Add(1); list2.Add(2); List <int> list3 = new List <int>(); list3.Add(3); list3.Add(2); list3.Add(1); //var t1 = db.GetSentenceBySeq(list1); //var t2 = db.GetSentenceBySeq(list2); //var t3 = db.GetSentenceBySeq(list3); //if(t1 == -1 && t2 == -1 && t3 == -1) //{ //} var uu = db.GetSign(0); if (uu == null) { } }
void InitializeSyllable() { db = GameObject.FindGameObjectWithTag(Constants.Tags.DatabaseManager).GetComponent<DatabaseManager>(); am = GameObject.FindGameObjectWithTag(Constants.Tags.AudioManager).GetComponent<AudioManager>(); //uic = GameObject.FindObjectOfType<UiController>().GetComponent<UiController>(); //if (ID == 48) //{ // return; //} GetComponent<Image>().sprite = db.GetImage(db.GetSyllable(ID).ImageName); //GetComponent<Image>().transform.localScale = new Vector3(1.2f,1.2f,1.2f); }
void InitializeSyllable() { db = GameObject.FindGameObjectWithTag(Constants.Tags.DatabaseManager).GetComponent <DatabaseManager>(); am = GameObject.FindGameObjectWithTag(Constants.Tags.AudioManager).GetComponent <AudioManager>(); //uic = GameObject.FindObjectOfType<UiController>().GetComponent<UiController>(); //if (ID == 48) //{ // return; //} GetComponent <Image>().sprite = db.GetImage(db.GetSyllable(ID).ImageName); //GetComponent<Image>().transform.localScale = new Vector3(1.2f,1.2f,1.2f); }
// Use this for initialization void Start() { db = GameObject.Find("DatabaseManager").GetComponent<DatabaseManager>(); GameObject.Find("Image0").GetComponent<Image>().sprite = db.GetImage(db.GetSyllable(0).ImageName); GameObject.Find("Image1").GetComponent<Image>().sprite = db.GetImage(db.GetSyllable(1).ImageName); GameObject.Find("Image2").GetComponent<Image>().sprite = db.GetImage(db.GetSyllable(2).ImageName); GameObject.Find("Image3").GetComponent<Image>().sprite = db.GetImage(db.GetSyllable(3).ImageName); List<int> list1 = new List<int>(); list1.Add(1); list1.Add(2); list1.Add(3); List<int> list2 = new List<int>(); list2.Add(3); list2.Add(1); list2.Add(2); List<int> list3 = new List<int>(); list3.Add(3); list3.Add(2); list3.Add(1); //var t1 = db.GetSentenceBySeq(list1); //var t2 = db.GetSentenceBySeq(list2); //var t3 = db.GetSentenceBySeq(list3); //if(t1 == -1 && t2 == -1 && t3 == -1) //{ //} var uu = db.GetSign(0); if(uu == null) { } }