12 lines
190 B
C#
12 lines
190 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
[Serializable]
|
|
public class ColliderAtach : MonoBehaviour
|
|
{
|
|
public void Update()
|
|
{
|
|
Debug.Log(collider.attachedRigidbody.gameObject.name);
|
|
}
|
|
}
|