Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class LevelModule : MonoBehaviour {
  6.  
  7.     // RULES ADDED HERE
  8.     public Collider collidingObject = null;
  9.  
  10.     // Returns all exits childed to this component
  11.     public ModuleExit[] GetExitList()
  12.     {
  13.         return GetComponentsInChildren<ModuleExit>();
  14.     }
  15.        
  16.  
  17.     void OnDrawGizmos()
  18.     {
  19.  
  20.     }
  21.  
  22.     void OnCollisionEnter(Collision coll)
  23.     {
  24.         Debug.Log(gameObject.name + " is colliding with " + coll.gameObject.name);
  25.     }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement