public void PackAction() { GameDelegateTeenPatti.ShowoDistrubuteCardSound (); appwrapTeenpatti.SendPackAmount (); StopTimer (); HideMyPanel (Panel); }
IEnumerator DistributeCard() { // disrtibute the user card if (Status == 1) { foreach (GameObject c in cards) { try { GameObject currentCard = Instantiate(dealerCardPos); currentCard.transform.SetParent(dealerCardPos.transform.parent); currentCard.transform.localPosition = dealerCardPos.transform.localPosition; currentCard.transform.localScale = new Vector3(1.0f, 1.0f, 1.0f); Color MyColor = new Color(255.0f / 255.0f, 255.0f / 255.0f, 255.0f / 255.0f, 1.0f); currentCard.GetComponent <Image> ().color = MyColor; iTween.MoveTo(currentCard, c.transform.position, 0.3f); GameDelegateTeenPatti.ShowoDistrubuteCardSound(); c.GetComponent <Image> ().sprite = Resources.Load <Sprite> ("Images_Teenpatti/cards/cradFold_s"); StartCoroutine(SHowCard(c, currentCard)); } catch (System.Exception ex) { Debug.Log("DistributeCard Exception " + ex.Message); } yield return(new WaitForSeconds(0.1f)); } ShowSeeBtn(); } yield return(new WaitForSeconds(1)); }