Esempio n. 1
0
    public void OneCoinDropAtPos(int coin)
    {
        int num = 5;

        if (coin > 50)
        {
            num = 10;
        }
        else if (coin > 20)
        {
            num = 7;
        }
        for (int i = 0; i < num; i++)
        {
            GameObject go = Instantiate(pbCoin) as GameObject;
            SDK.AddChild(go, _gameObject);

            Vector3 v3pos = new Vector3(Random.Range(-300, 300), -515, 0);
            go.transform.localPosition = v3pos;

            v3pos.y = Random.Range(50, 100);

            MiniItween it = MiniItween.MoveTo(go, v3pos, 0.4f, MiniItween.EasingType.Bounce3);
            it.myDelegateFuncWithObject += this.MoveEnd;
        }
    }
Esempio n. 2
0
    IEnumerator shakeEx()
    {
        MiniItween.Shake(Camera.main.gameObject, shakeV3, shakeTime, ShakeType, false);
        yield return(new WaitForSeconds(shakeTime));

        Back();
    }
Esempio n. 3
0
    IEnumerator Draw()
    {
        Screen_Brightness_ONOFF(true);
        if (Man_L != null && Man_R != null)
        {
            Man_L.HandleTypeAnim(CRLuoAnim_Main.Type.GoRush);
            Man_R.HandleTypeAnim(CRLuoAnim_Main.Type.GoRush);
            MiniItween.MoveTo(Man_GameObj_L, new Vector3(0, 0, -Long_Near), Fly_Time);
            MiniItween.MoveTo(Man_GameObj_R, new Vector3(0, 0, Long_Near), Fly_Time);

            yield return(new WaitForSeconds(Fly_Time));

            Man_L.RivalOBJ   = null;
            Man_L.SaveLife   = !KillYou;
            Man_L.Injure_Key = false;
            Man_R.RivalOBJ   = null;
            Man_R.SaveLife   = !KillYou;
            Man_R.Injure_Key = false;

            Man_L.HandleTypeAnim(CRLuoAnim_Main.Type.Attack);
            Man_R.HandleTypeAnim(CRLuoAnim_Main.Type.Attack);

            yield return(new WaitForSeconds(DoubleKill_Time));

            Man_L.HandleTypeAnim(CRLuoAnim_Main.Type.BackRush);
            Man_R.HandleTypeAnim(CRLuoAnim_Main.Type.BackRush);

            MiniItween.MoveTo(Man_GameObj_L, new Vector3(0, 0, -Long_Far), Fly_Time);
            MiniItween.MoveTo(Man_GameObj_R, new Vector3(0, 0, Long_Far), Fly_Time);
        }
    }
Esempio n. 4
0
    void PlayThunder()
    {
        if (state == 1)
        {
            MiniItween.MoveTo(sprite_Attack.gameObject, Vector3.zero, 0.1f);

            Vector3 localPos = sprite_Defense.transform.localPosition;
            Vector3 toPos    = new Vector3(localPos.x + MoveDistance, localPos.y, localPos.z);
            MiniItween.MoveTo(sprite_Defense.gameObject, toPos, 0.1f, MiniItween.EasingType.EaseInQuad);
            MiniItween.ColorTo(sprite_Defense.gameObject, new V4(new Color(1.0f, 1.0f, 1.0f, 0.0f)), 0.1f, MiniItween.Type.ColorWidget);
        }
        else if (state == -1)
        {
            MiniItween.MoveTo(sprite_Defense.gameObject, Vector3.zero, 0.1f);

            Vector3 localPos = sprite_Attack.transform.localPosition;
            Vector3 toPos    = new Vector3(localPos.x - MoveDistance, localPos.y, localPos.z);
            MiniItween.MoveTo(sprite_Attack.gameObject, toPos, 0.1f, MiniItween.EasingType.EaseInQuad);
            MiniItween.ColorTo(sprite_Attack.gameObject, new V4(new Color(1.0f, 1.0f, 1.0f, 0.0f)), 0.1f, MiniItween.Type.ColorWidget);
        }

        GameObject thunder = GameObject.Instantiate(Go_Thunder) as GameObject;

        thunder.transform.parent        = gameObject.transform;
        thunder.transform.localPosition = Vector3.zero;

        Invoke("ZoomOut", 1.5f);
    }
Esempio n. 5
0
    public void SetInitPos(int m_Id, Vector3 _temp)
    {
        MiniItween m = MiniItween.MoveTo(gameObject, _temp, 0.4f, MiniItween.EasingType.Linear, false);

        m.myDelegateFuncWithObject += FinishHead;
        MiniItween.ScaleTo(gameObject, new Vector3(1f, 1f, 1f), 0.4f);
    }
Esempio n. 6
0
 void StepNine()
 {
     for (int i = 0; i < spAni.Length; i++)
     {
         MiniItween.ColorTo(spAni[i].gameObject, new V4(1, 1, 1, 0), 0.6f, MiniItween.Type.ColorWidget);
     }
 }
Esempio n. 7
0
    IEnumerator RemoveFirstRoleIconIE(float delayTime)
    {
        yield return(new WaitForSeconds(delayTime));


        if (getAliveCount > 0)
        {
            float             disappearTime = 0.6f;
            BanBattleRoleIcon aIcon         = list_Team[0];
            TweenAlpha.Begin(aIcon.gameObject, disappearTime, 0.6f);
            MiniItween.MoveTo(aIcon.gameObject, GetTeamIconLocalPos(list_Team.Count - 1), disappearTime, MiniItween.EasingType.EaseInQuint, false);

            for (int i = 1; i < list_Team.Count; i++)
            {
                MiniItween.MoveTo(list_Team[i].gameObject, GetTeamIconLocalPos(i - 1), disappearTime, MiniItween.EasingType.EaseInQuint, false).b_handleScaleTime = true;
            }

            aIcon.toDie();
            list_Team.RemoveAt(0);
            list_Team.Add(aIcon);
            ReadRoleNum(getAliveCount, list_Team.Count);  // yangchenguang 战斗队伍士兵显示字符串修改

            yield return(new WaitForSeconds(disappearTime));
        }
    }
Esempio n. 8
0
    public void UpAnimImmediate()
    {
        Vector3 target = transform.localPosition + new Vector3(0f, UpDis, 0f);

        MiniItween.MoveTo(gameObject, target, MoveTime, MiniItween.EasingType.EaseInCubic);
        MiniItween.ColorTo(lblChgNum.gameObject, new V4(new Color(1.0f, 1.0f, 1.0f, 0.0f)), MoveTime, MiniItween.Type.ColorWidget);
    }
Esempio n. 9
0
    IEnumerator BeginToRotate()
    {
        MiniItween mm = MiniItween.RotateTo(this.gameObject, new Vector3(gameObject.transform.localRotation.x - 60.0f, 0.0f, 0.0f), 2.0f);

        mm.myDelegateFuncWithObject += _mm;
        yield return(null);
    }
Esempio n. 10
0
    IEnumerator AttackAction(bool LiftObj)
    {
        Screen_Brightness_ONOFF(true);
        if (Man_L != null && Man_R != null)
        {
            Man_L.HandleTypeAnim(CRLuoAnim_Main.Type.GoRush);
            Man_R.HandleTypeAnim(CRLuoAnim_Main.Type.GoRush);
            MiniItween.MoveTo(Man_GameObj_L, new Vector3(0, 0, -Long_Near), Fly_Time);
            MiniItween.MoveTo(Man_GameObj_R, new Vector3(0, 0, Long_Near), Fly_Time);
            yield return(new WaitForSeconds(Fly_Time));

            //强制到特定的位置
            Man_GameObj_L.transform.localPosition = new Vector3(0, 0, -Long_Near);
            Man_GameObj_R.transform.localPosition = new Vector3(0, 0, Long_Near);

            if (LiftObj)
            {
                Man_L.RivalOBJ   = Man_R;
                Man_R.RivalOBJ   = null;
                Man_R.SaveLife   = !KillYou;
                Man_L.Injure_Key = false;
                Man_L.HandleTypeAnim(CRLuoAnim_Main.Type.Attack);
            }
            else
            {
                Man_R.RivalOBJ   = Man_L;
                Man_L.RivalOBJ   = null;
                Man_L.SaveLife   = !KillYou;
                Man_R.Injure_Key = false;
                Man_R.HandleTypeAnim(CRLuoAnim_Main.Type.Attack);
            }
        }
    }
Esempio n. 11
0
    /// <summary>
    /// 返回值表示是否有属性克制, True代表确定有属性克制
    /// </summary>

    public bool Set(BanBattleRole.Attribute attackAttribute, BanBattleRole.Attribute defenseAttribute)
    {
        Core.Data.soundManager.SoundFxPlay(SoundFx.FX_Explosion);

        sprite_Attack.spriteName  = BanTools.GetAttributeName(attackAttribute);
        sprite_Defense.spriteName = BanTools.GetAttributeName(defenseAttribute);

        sprite_Attack.MakePixelPerfect();
        sprite_Defense.MakePixelPerfect();

        transform.localScale = new Vector3(15f, 15f, 15f);

        state = BanTools.GetAttributeState(attackAttribute, defenseAttribute);
        if (state == 1)
        {
            sprite_Attack.transform.localPosition = new Vector3(sprite_Attack.transform.localPosition.x - 10f, sprite_Attack.transform.localPosition.y, sprite_Attack.transform.localPosition.z);
            sprite_Attack.transform.localScale    = new Vector3(EnlargeFactor, EnlargeFactor, EnlargeFactor);
            sprite_Defense.transform.localScale   = new Vector3(1.0f, 1.0f, 1.0f);
        }
        else if (state == -1)
        {
            sprite_Defense.transform.localPosition = new Vector3(sprite_Defense.transform.localPosition.x + 10f, sprite_Defense.transform.localPosition.y, sprite_Defense.transform.localPosition.z);
            sprite_Attack.transform.localScale     = new Vector3(1.0f, 1.0f, 1.0f);
            sprite_Defense.transform.localScale    = new Vector3(EnlargeFactor, EnlargeFactor, EnlargeFactor);
        }

        MiniItween itween = MiniItween.ScaleTo(gameObject, new Vector3(1.0f, 1.0f, 1.0f), ScaleTime, ScaleType);

        itween.myDelegateFunc += shake;

        return(state != 0);
    }
Esempio n. 12
0
    /// <summary>
    /// 之后的所有字母
    /// </summary>

    IEnumerator Word_Later()
    {
        for (int index = 2; index < 7; ++index)
        {
            UILabel lbl_word = WarningWord[index];
            lbl_word.gameObject.SetActive(true);

            lbl_word.alpha = 0f;
            lbl_word.transform.localScale = Word_Scale * Vector3.one;

            MiniItween.ScaleTo(lbl_word.gameObject, Word_Final * Vector3.one, Word_Time, MiniItween.EasingType.EaseInCubic);
            MiniItween.ColorTo(lbl_word.gameObject, new V4(Color.red), Word_Time, MiniItween.Type.ColorWidget);

            yield return(new WaitForSeconds(Word_Time));

            yield return(new WaitForEndOfFrame());

            lbl_word.transform.localScale = Vector3.one;

            if (index == 3)
            {
                StartCoroutine(Blood3Anim());
            }
        }

        yield return(new WaitForSeconds(AllWord_Show_Time));
    }
Esempio n. 13
0
    /// <summary>
    /// 自爆群体技能
    /// </summary>
    public IEnumerator GroupExploreSelf(bool leftObj)
    {
        Screen_Brightness_ONOFF(false);
        if (Man_L != null && Man_R != null)
        {
            Man_L.HandleTypeAnim(CRLuoAnim_Main.Type.BackRush);
            Man_R.HandleTypeAnim(CRLuoAnim_Main.Type.BackRush);
            MiniItween.MoveTo(Man_GameObj_L, new Vector3(0, 0, -Long_Far), Fly_Time);
            MiniItween.MoveTo(Man_GameObj_R, new Vector3(0, 0, Long_Far), Fly_Time);
            yield return(new WaitForSeconds(Fly_Time));

            if (leftObj)
            {
                Man_R.RivalOBJ   = Man_L;
                Man_R.SaveLife   = !KillYou;
                Man_L.Injure_Key = false;
                Man_L.SaveLife   = false;
                Man_L.HandleTypeAnim(CRLuoAnim_Main.Type.GroupSkill);
            }
            else
            {
                Man_L.RivalOBJ   = Man_R;
                Man_L.SaveLife   = !KillYou;
                Man_R.Injure_Key = false;
                Man_R.SaveLife   = false;
                Man_R.HandleTypeAnim(CRLuoAnim_Main.Type.GroupSkill);
            }
        }
    }
Esempio n. 14
0
    /// <summary>
    /// 字母O
    /// </summary>

    IEnumerator Word_O()
    {
        UILabel lbl_O = WarningWord[1];

        lbl_O.gameObject.SetActive(true);
        Blood2.gameObject.SetActive(true);

        lbl_O.alpha = 0f;
        lbl_O.transform.localScale = Word_Scale * Vector3.one;

        Blood2.alpha = Blood_Alpha;
        Blood2.transform.localScale = Word_Scale * Vector3.one;


        MiniItween.ScaleTo(lbl_O.gameObject, Word_Final * Vector3.one, Word_Time, MiniItween.EasingType.EaseInCubic);
        MiniItween.ColorTo(lbl_O.gameObject, new V4(Color.red), Word_Time, MiniItween.Type.ColorWidget);

        MiniItween.ScaleTo(Blood2.gameObject, Word_Final * Vector3.one, Word_Time);
        MiniItween.ColorTo(Blood2.gameObject, new V4(Color.white), Word_Time, MiniItween.Type.ColorWidget);

        yield return(new WaitForSeconds(Word_Time));

        yield return(new WaitForEndOfFrame());

        lbl_O.transform.localScale  = Vector3.one;
        Blood2.transform.localScale = Vector3.one;
    }
Esempio n. 15
0
	void SetCompleteScale(GameObject g)
	{
//		mLockClick = false;
		MiniItween m = MiniItween.MoveTo(gameObject, new Vector3(0,29,-340.0f), 0.25f);
		MiniItween.ScaleTo(gameObject, new Vector3(95,95,75),0.25f);
		m.myDelegateFuncWithObject += SetCompleteMove;
    }
Esempio n. 16
0
    void StepFive()
    {
        GameObject obj_4     = spAni[4].gameObject;
        Vector3    targetPos = new Vector3(436, 159, 0);

        MiniItween.MoveTo(obj_4, targetPos, 0.8f);
        MiniItween.ColorTo(obj_4, new V4(Color.white), 0.7f, MiniItween.Type.ColorWidget);
    }
Esempio n. 17
0
    IEnumerator Step12()
    {
        Sp12.gameObject.SetActive(true);
        Sp12.color = trans;

        MiniItween.ColorTo(Sp12.gameObject, new V4(Color.white), Step12ShowTime, MiniItween.Type.ColorWidget);
        yield return(new WaitForSeconds(Step12ShowTime));
    }
Esempio n. 18
0
    IEnumerator Par1End()
    {
        Mask.gameObject.SetActive(true);

        Mask.color = trans;
        MiniItween.ColorTo(Mask.gameObject, new V4(Color.white), 1.2f, MiniItween.Type.ColorWidget);
        yield return(new WaitForSeconds(GapBetweenPart));
    }
Esempio n. 19
0
    IEnumerator Step1()
    {
        Color transBG = new Color(1f, 1f, 1f, 0.74f);

        BG_Black.gameObject.SetActive(true);
        BG_Black.color = Trans;
        MiniItween.ColorTo(BG_Black.gameObject, new V4(transBG), Black_Time, MiniItween.Type.ColorWidget);
        yield return(new WaitForSeconds(Black_Time));
    }
Esempio n. 20
0
    public void CloseDoor()
    {
        MiniItween.MoveTo(DoorLeft, oldDoorLeft, CloseDoorTime, MiniItween.EasingType.EaseOutCirc, false);
        MiniItween.MoveTo(DoorRight, oldDoorRight, CloseDoorTime, MiniItween.EasingType.EaseOutCirc, false);

        MiniItween.Shake(Door, DoorMoveV3, DoorDisTime, MiniItween.EasingType.Linear, false);

        Invoke("OpenBattleDoor", RepeatTime);
    }
Esempio n. 21
0
	public void SetFinalPos()
	{
		if(key)return;
		MiniItween m = MiniItween.MoveTo(gameObject, CradSystemFx.GetInstance().mPetBoxPos, 0.4f);
		MiniItween.ScaleTo(gameObject, new Vector3(0,0,0), 0.4f);
		MiniItween.RotateTo(gameObject, Quaternion.Euler(new Vector3(0,180,0)), 1.5f);
		m.myDelegateFuncWithObject += SetFinalPos;
		
	}
Esempio n. 22
0
 void PlayPage7_2()
 {
     Page7_fly.gameObject.SetActive(false);
     Page7_bomb.gameObject.SetActive(true);
     Page7_gangdang.enabled = true;
     Core.Data.soundManager.SoundFxPlay(SoundFx.FX_BaoZha1);
     MiniItween.Shake(Page7_back.gameObject, new Vector3(5f, 5f, 0), 2f, MiniItween.EasingType.EaseInCubic, false);
     Invoke("PlayPage7_3", 2f);
 }
Esempio n. 23
0
    void OnMoveToTarget()
    {
        lblTimeEffect.GetComponent <TweenScale> ().onFinished.Clear();

        MiniItween.MoveTo(lblTimeEffect.gameObject, timerLabelPos, 0.8f);
        TweenScale.Begin(lblTimeEffect.gameObject, 0.8f, Vector3.one);
        setTimeBoxEffect = true;

        lblTimeEffect.GetComponent <TweenScale> ().onFinished.Add(new EventDelegate(this, "SetShowBoxEffect"));
    }
Esempio n. 24
0
    public void aoYiIconAnimationComplete(GameObject g)
    {
        MiniItween m = g.GetComponent <MiniItween>();

        m.myDelegateFuncWithObject -= aoYiIconAnimationComplete;

        setAoYi();

        MiniItween.Shake(this.background, new Vector3(0, 2.0f, 0), 0.2f, MiniItween.EasingType.Normal, false);
    }
Esempio n. 25
0
    //人物消失
    IEnumerator DisappearRole()
    {
        MiniItween.MoveTo(LeftRole.gameObject, new Vector3(-hideDis, 0f, 0f), QuitTimeRole);
        MiniItween.MoveTo(RightRole.gameObject, new Vector3(hideDis, 0f, 0f), QuitTimeRole);

        yield return(new WaitForSeconds(QuitTimeRole));

        bgAnim.AnimationEndDelegate = null;
        bgAnim.Reverse();
    }
Esempio n. 26
0
    void StepThree()
    {
        GameObject obj_2       = spAni[2].gameObject;
        Vector3    targetScale = Vector3.one * 1.3f;

        MiniItween.ScaleTo(obj_2, targetScale, 0.15f).myDelegateFunc += () => {
            MiniItween.ScaleTo(obj_2, Vector3.one, 0.1f);
        };
        //  MiniItween.Shake(obj_2,new Vector3(6,6,0),0.2f,MiniItween.EasingType.EaseInCubic,false);
    }
Esempio n. 27
0
    //显示金币 --支持到6位数字
    void showCoinCount(int num)
    {
        CoinNum.text = "+" + num.ToString();

        CoinNum.color = new Color(1f, 1f, 1f, 0f);
        CoinNum.transform.localScale = Vector3.one * 3;

        MiniItween.ScaleTo(CoinNum.gameObject, Vector3.one, 0.1f);
        MiniItween.ColorTo(CoinNum.gameObject, new V4(Color.yellow), 0.1f, MiniItween.Type.ColorWidget);
    }
Esempio n. 28
0
    //如果多出来的区域,要滑动回去

    //Vector3 ResetPos1 = new Vector3(28.07034f,0,20.4f);
//	Vector3 ResetPos2 = new Vector3(25.13108f,0,30.87951f);
//	Vector3 ResetPos3 =new Vector3(30.11301f,0,41.37781f);
//	Vector3 ResetPos4 = new Vector3(30f,0,30f);
    private bool SwipToMin()
    {
        Vector3 curAngle = transform.rotation.eulerAngles;
        bool    result   = false;

        if (curAngle.x > MAX_NEAR_X && curAngle.z > MAX_NEAR_Z)
        {
            MiniItween.RotateTo(gameObject, new Vector3(MAX_NEAR_X, 0, MAX_NEAR_Z), BACKTIME);
            //MiniItween.RotateTo(gameObject, ResetPos3, BACKTIME);
            result = true;
        }
        else if (curAngle.x > MAX_NEAR_X && curAngle.z < MIN_NEAR_Z)
        {
            //MiniItween.RotateTo(gameObject, ResetPos1, BACKTIME);
            MiniItween.RotateTo(gameObject, new Vector3(MAX_NEAR_X, 0, MIN_NEAR_Z), BACKTIME);
            result = true;
        }
        else if (curAngle.x < MIN_NEAR_X && curAngle.z < MIN_NEAR_Z)
        {
            //MiniItween.RotateTo(gameObject, ResetPos1, BACKTIME);
            MiniItween.RotateTo(gameObject, new Vector3(MIN_NEAR_X, 0, MIN_NEAR_Z), BACKTIME);
            result = true;
        }
        else if (curAngle.x < MIN_NEAR_X && curAngle.z > MAX_NEAR_Z)
        {
            //MiniItween.RotateTo(gameObject, ResetPos3, BACKTIME);
            MiniItween.RotateTo(gameObject, new Vector3(MIN_NEAR_X, 0, MAX_NEAR_Z), BACKTIME);
            result = true;
        }
        else if (curAngle.x > MAX_NEAR_X)
        {
            MiniItween.RotateTo(gameObject, new Vector3(MAX_NEAR_X, 0, curAngle.z), BACKTIME);
            //MiniItween.RotateTo(gameObject, ResetPos4, BACKTIME);
            result = true;
        }
        else if (curAngle.x < MIN_NEAR_X)
        {
            MiniItween.RotateTo(gameObject, new Vector3(MIN_NEAR_X, 0, curAngle.z), BACKTIME);
            //MiniItween.RotateTo(gameObject, ResetPos2, BACKTIME);
            result = true;
        }
        else if (curAngle.z > MAX_NEAR_Z)
        {
            //MiniItween.RotateTo(gameObject, ResetPos3, BACKTIME);
            MiniItween.RotateTo(gameObject, new Vector3(curAngle.x, 0, MAX_NEAR_Z), BACKTIME);
            result = true;
        }
        else if (curAngle.z < MIN_NEAR_Z)
        {
            //MiniItween.RotateTo(gameObject, ResetPos1, BACKTIME);
            MiniItween.RotateTo(gameObject, new Vector3(curAngle.x, 0, MIN_NEAR_Z), BACKTIME);
            result = true;
        }
        return(result);
    }
Esempio n. 29
0
    // Update is called once per frame
    void Update()
    {
        if (Temp_OBJ != null && NewOBJ)
        {
//            float a = CRLuo.mainMeshRender.renderer.bounds.center.y
//                + CRLuo.mainMeshRender.renderer.bounds.extents.y + CRLuo.OneShow_Height;

            CameraOBJ.transform.localPosition = new Vector3(CRLuo.ScaleplateOffset.x, CRLuo.mainMeshRender.renderer.bounds.center.y + CRLuo.ScaleplateOffset.y, cameraPosz + CRLuo.ScaleplateOffset.z);
//            a = a * Screen.height / Screen.width + CameraAdd;
//			float b = Mathf.Abs( CameraOBJ.transform.localPosition.z);
//
//			float TempFOV = (Mathf.Atan (a / b) * 180 / Mathf.PI * 2);
//			CameraOBJ.fieldOfView = TempFOV;
            NewOBJ = false;
        }

        if (Input.GetMouseButtonDown(0))
        {
            MiniItween.DeleteType(StageOBJ, MiniItween.Type.Rotate);

            Touch_O = Input.mousePosition;

            NowRotation = StageOBJ.transform.rotation.eulerAngles;

            if (Temp_OBJ != null)
            {
                if (CRLuo.GetCurAnim() == "Idle")
                {
                    if (AW.Utils.UnityUtils.inScreenRect(CRLuo.mainMeshRender, CameraOBJ, Input.mousePosition))
                    {
                        lastBtnDown = Time.realtimeSinceStartup;
                        playAnim();
                    }
                }
            }
        }
        else if (Input.GetMouseButton(0))
        {
            MiniItween.DeleteType(StageOBJ, MiniItween.Type.Rotate);

            Vector2 NewPos = Input.mousePosition;

            float NowLong = NewPos.x - Touch_O.x;

            NowLong *= RotSheepScale;

            StageOBJ.transform.rotation = Quaternion.Euler(new Vector3(0, NowRotation.y - NowLong, 0));
        }

        if ((Time.realtimeSinceStartup - lastBtnDown) >= AUTO_TIME)
        {
            lastBtnDown = Time.realtimeSinceStartup;
            playAnim();
        }
    }
Esempio n. 30
0
    IEnumerator Step8()
    {
        Sp8.gameObject.SetActive(true);
        Sp8.transform.localScale = Vector3.zero;

        MiniItween.ScaleTo(Sp8.gameObject, Step8ScaleLarge * Vector3.one, Step8ScaleTime);
        yield return(new WaitForSeconds(Step8ScaleTime));

        MiniItween.ScaleTo(Sp8.gameObject, Vector3.one, Step8ReduceTime);
        yield return(new WaitForSeconds(Step8ReduceTime + Gap8));
    }