Exemple #1
0
    public IEnumerator Absorb(AbstractEntity argEntity)
    {
        StartCoroutine(argEntity.LerpAlpha(0, 0.3f));
        StartCoroutine(argEntity.ShrinkTo(Vector3.zero, 1));
        yield return StartCoroutine(argEntity.MoveTo(Transform.position, 1));

        if (renderer != null)
            renderer.enabled = false;
    }