public IEnumerator MoveToDestroy() { // this.m_pos = type_pos.destroy; this.m_pos = EventCardPos.Destroy; this.transform.DOLocalMove(DestroyPos, 0.3f); yield return(new WaitForSeconds(0.3f)); this.face.SetActive(false); yield return(true); }
public IEnumerator MoveToHand() { yield return(false); Tween t = this.transform.DORotate(new Vector3(0, 90, 0), 0.3f); yield return(t.WaitForCompletion()); // this.m_pos = type_pos.inside; this.m_pos = EventCardPos.Inside; this.transform.DOLocalMove(InsidePos, 0.3f); yield return(true); this.face.SetActive(true); }
public void CardBack() { isOutSide = false; // this.m_pos = type_pos.inside; this.m_pos = EventCardPos.Inside; if (this.transform.parent.gameObject.GetComponent <CardDeckControl>() != null) { this.transform.parent.gameObject.GetComponent <CardDeckControl>().CardOutTrigger(); } else if (this.transform.parent.gameObject.GetComponent <OpsdCardControl>() != null) { this.transform.parent.gameObject.GetComponent <OpsdCardControl>().CardOutTrigger(); } this.transform.DOLocalMove(InsidePos, 0.1f); }