public IEnumerator lockIconAnimationComplete(TweenRotation tr) { yield return(new WaitForSeconds(0.5f)); Destroy(tr); MiniItween mi = MiniItween.ColorFromTo(this.lockIconObj, new V4(1.0f, 1.0f, 1.0f, 1f), new V4(1.0f, 1.0f, 1.0f, 0f), 0.1f, MiniItween.EasingType.Normal, MiniItween.Type.ColorWidget); mi.myDelegateFuncWithObject += lockIconObjScaleToComplete; // MiniItween.ColorFromTo(g2, new V4(1.0f, 1.0f, 1.0f, 0f), new V4(1.0f, 1.0f, 1.0f, 1.0f), 0.3f, MiniItween.EasingType.Normal, MiniItween.Type.ColorWidget); MiniItween.ScaleTo(this.lockIconObj, new Vector3(1.5f, 1.5f, 1), 0.05f); }
void unSelectButtonCheckmark(GameObject[] gs) { float time = 0.05f; for (int i = 0; i < gs.Length; i++) { GameObject g = gs[i]; g.SetActive(true); MiniItween m = MiniItween.ColorFromTo(g, new V4(1.0f, 1.0f, 1.0f, 1.0f), new V4(1.0f, 1.0f, 1.0f, 0.0f), time, MiniItween.EasingType.Normal, MiniItween.Type.ColorWidget); m.myDelegateFuncWithObject += unSelectButtonCheckmarkMoveToComplete; MiniItween.MoveTo(g, new Vector3(-145 + (i * 145 * 2), 0, 0), time); } }
public void aoYiIconAnimation(bool isAnimation) { if (isAnimation) { this.aoYiIcon.spriteName = aoYi.AoYiDataConfig.ID.ToString(); this.aoYiIcon.transform.localScale = new Vector3(3, 3, 1); MiniItween m = MiniItween.ScaleTo(this.aoYiIcon.gameObject, new Vector3(1, 1, 1), 0.1f); m.myDelegateFuncWithObject += aoYiIconAnimationComplete; MiniItween.ColorFromTo(this.aoYiIcon.gameObject, new V4(1, 1, 1, 0), new V4(1, 1, 1, 1), 0.1f, MiniItween.EasingType.Normal, MiniItween.Type.ColorWidget); } else { setAoYi(); } }
void selectButtonCheckmark(GameObject[] gs) { float time = 0.05f; for (int i = 0; i < gs.Length; i++) { GameObject g = gs[i]; g.SetActive(true); g.transform.localScale = new Vector3(3, 3, 1); MiniItween.ColorFromTo(g, new V4(1.0f, 1.0f, 1.0f, 0f), new V4(1.0f, 1.0f, 1.0f, 1.0f), time, MiniItween.EasingType.Normal, MiniItween.Type.ColorWidget); MiniItween.ScaleTo(g, new Vector3(1, 1, 1), time); MiniItween.MoveTo(g, new Vector3(-120 + (i * 120 * 2), 0, 0), time); } }
void SelectCotnentBackgroundColorChange(GameObject g, V4 from, V4 to) { MiniItween.ColorFromTo(g, from, to, 0.3f, MiniItween.EasingType.Normal, MiniItween.Type.ColorWidget); }