Exemplo n.º 1
0
    private void SpawnDeathEffect(Vector3 pos, float duration, float delay, AnimationCurve curve)
    {
        GameObject deathEff = BattleStageManager.Instance.SpawnObject("Player/PlayerDeathEffect");

        deathEff.transform.position = pos;
        EffectObject effObj = deathEff.GetComponent <EffectObject>();

        effObj.lifeDuration = duration;
        effObj.SetDelay(delay);
        effObj.SetScaleCurve(curve);
    }