예제 #1
0
    IEnumerator Start()
    {
        float aPieceTime = (f_TotalTime - f_HoldTime - f_DisappearTime) / banCartoonPieces.Length;

        for (int i = 0; i < banCartoonPieces.Length; i++)
        {
            GeneratePieceMesh(banCartoonPieces[i], i);
            yield return(new WaitForSeconds(aPieceTime));
        }
        yield return(new WaitForSeconds(f_HoldTime));

        foreach (GameObject go in list_Piece)
        {
            MiniItween.VertexColorTo(go, new V4(0, 0, 0, 0), f_DisappearTime, MiniItween.EasingType.Normal);
        }
        Destroy(this.gameObject, f_DisappearTime);
    }