Untitled

mail@pastecode.io avatar
unknown
plain_text
4 years ago
372 B
3
Indexable
Never
using UnityEngine;

public class ColliderScript : MonoBehaviour
{

    public GameObject Button;

    void OnCollisionEnter (Collision collisionInfo)
    {
        
        // Debug.Log(collisionInfo.collider.name)

        if (collisionInfo.collider.name == Button.name) 
        {
            Debug.Log("Rewind time");

        }
       

    }


}