예제 #1
0
    public IEnumerator HideEffectStart()
    {
        showEffect = false;
        GameObject Effect = EffectStart.gameObject;

        for (int i = 0; i < 3; i++)
        {
            TweenAlpha.Begin(EffectStart.GetChild(i).gameObject, 2f, 0);
        }
        yield return(new WaitForSeconds(2f));

        isProtected = false;
        Destroy(Effect);
    }
예제 #2
0
    //
    public IEnumerator ShowEffectStart()
    {
        showEffect = true;

        for (int i = 0; i < 3; i++)
        {
            GameObject Effect = EffectStart.GetChild(i).gameObject;
            Effect.SetActive(true);
            TweenAlpha twA = TweenAlpha.Begin(Effect, 2f, Effect.GetComponent <SpriteRenderer>().color.a);
            twA.from = 0;

            yield return(new WaitForSeconds(0.33f));
        }
    }