public void OnTurnStart() { MessageManager.Instance.ShowMessage("Player1 Turn", 1.5f); manaText.gameObject.SetActive(true); timeText.gameObject.SetActive(true); Temp tt = GetComponent <Temp>(); tt.attackP1Button.gameObject.SetActive(true); count = 60; count2 = 70; currentTurn++; activeManaCrystals = currentTurn; if (activeManaCrystals >= 10) { activeManaCrystals = 10; } manaText.text = activeManaCrystals.ToString(); //for (int i = 0; i < activeManaCrystals; i++) //{ // manaCrystals[i].SetActive(true); //} endTurnButton.gameObject.SetActive(true); tt.DrawP1(1); // ทำให้มีมเนียนที่ลงโจมตีได้ for (int i = 0; i < tt.spawnPointBoard1.Length; i++) { if (tt.spawnPointBoard1[i] == true) { GameObject card = GameObject.Find("P1Creatre " + i); CretureDisplay a = card.GetComponent <CretureDisplay>(); a.ischarge = true; } } }