public bool UpdateGetCard(float delta) { if (isGetCard) { cardGetCount += delta; if (cardGetCount >= 1.5f) { lotteryCard.transform.position = m_path.Update(delta); } if (m_path.IsEnd()) { isGetCard = false; } return(m_path.IsEnd()); } else { return(false); } }
public bool Update(float ftime) { m_fShowDelay += ftime; if (m_fShowDelay > 1.5f) { if (!m_bFly) { m_bFly = true; m_gocard.transform.GetChild(0).GetComponent <Animator>().SetBool(Animator.StringToHash("cardFly"), true); } m_gocard.transform.position = m_path.Update(ftime); } else { m_gocard.transform.position = m_path.Update(0); } return(m_path.IsEnd()); }
public bool Update(float fTime) { m_fShowDelay += fTime; if (m_fShowDelay >= 1.7f) { if (!m_bFly) { m_bFly = true; m_goEffect1.transform.GetChild(0).GetChild(0).GetComponent <Animator>().SetBool(Animator.StringToHash("Scale"), true); } m_tfbox.localRotation *= Quaternion.AngleAxis(-120f * fTime, Vector3.forward); m_goEffect1.transform.position = m_PathMove.Update(fTime); if (m_PathMove.IsEnd()) { return(false); } } return(true); }