Ejemplo n.º 1
0
    private void OnTriggerEnter2D(Collider2D collision)
    {
        //ha kiment a colliderbe akor a ool vissza tudja majd ot helyezni
        ProjectileCreator.projectilePool.Add(collision.gameObject);

        ProjectileController projectileController = collision.gameObject.GetComponent <ProjectileController>();

        Animator[] animators = projectileController.GetAnimators();

        foreach (Animator animator in animators)
        {
            animator.SetBool(projectileController.aliveanimatorKey, true);
        }
    }