Advertisement
Sebsebeleb

Obstacle.cs

Jan 21st, 2022 (edited)
768
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using UnityEngine;
  2.  
  3. public class Obstacle : MonoBehaviour
  4. {
  5.     private void OnCollisionEnter(Collision collision)
  6.     {
  7.         ICollision collisionScript = collision.transform.GetComponent<ICollision>();
  8.        
  9.         collisionScript.Collided();
  10.     }
  11. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement