public void OnTurnStartP2() { MessageManager.Instance.ShowMessage("Player2 Turn", 1.5f); manaTextP2.gameObject.SetActive(true); timeTextP2.gameObject.SetActive(true); Temp tt = GetComponent <Temp>(); tt.attackP2Button.gameObject.SetActive(true); count2 = 60; count = 70; currentTurnP2++; activeManaCrystalsP2 = currentTurnP2; if (activeManaCrystalsP2 >= 10) { activeManaCrystalsP2 = 10; } manaTextP2.text = activeManaCrystalsP2.ToString(); //for (int i = 0; i < activeManaCrystalsP2; i++) //{ // manaCrystals[i].SetActive(true); //} endTurnButtonP2.gameObject.SetActive(true); tt.DrawP2(1); // ทำให้มีมเนียนที่ลงโจมตีได้ for (int i = 0; i < tt.spawnPointBoard2.Length; i++) { if (tt.spawnPointBoard2[i] == true) { GameObject card = GameObject.Find("P2Creatre " + i); CretureDisplay a = card.GetComponent <CretureDisplay>(); a.ischarge = true; } } }