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

public class TroisiemeScript : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        Debug.Log("Je m'appelle " + this.transform.name);
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    private void OnTriggerEnter(Collider other)
    {
        Rigidbody rb = GetComponent<Rigidbody>();
        Debug.Log(other.transform.name + " est rentr en collision avec moi !");
        rb.isKinematic = true; // On stoppe la physique associe la balle (en particulier, elle ne chute plus)
    }
}
