void createNewsContentData(NewsboardDetail nDetail) { if (nDetail.pin != "1") { GameObject itemDetail = (GameObject)GameObject.Instantiate(News); itemDetail.SetActive(true); itemDetail.transform.parent = this.transform; itemDetail.transform.localPosition = new Vector3(0, -1.8f - (countNews + countPragard) * 0.83f, 0); NewsboardContent idt = itemDetail.GetComponent <NewsboardContent>(); idt.setContent(nDetail); newsList.Add(itemDetail); countNews++; } }
// Use this for initialization void Start() { pGlobal = this; mSound = GetComponent <AudioSource>(); }