Untitled

mail@pastecode.io avatar
unknown
plain_text
4 years ago
356 B
2
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") ;
        {
            Debug.Log("Rewind time");
        }


    }
}