using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Wyrzutnia : MonoBehaviour
{
    private void OnTriggerEnter(Collider o)
    {
        if (o.name == "Sphere" || o.name == "Capsule")
        {
            Debug.Log(o.name);
            Rigidbody rb = o.GetComponent<Rigidbody>();
            rb.AddForce(new Vector3(0,1000,0));
        }   
    }
}
