Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class LevelModule : MonoBehaviour {
- // RULES ADDED HERE
- public Collider collidingObject = null;
- // Returns all exits childed to this component
- public ModuleExit[] GetExitList()
- {
- return GetComponentsInChildren<ModuleExit>();
- }
- void OnDrawGizmos()
- {
- }
- void OnCollisionEnter(Collision coll)
- {
- Debug.Log(gameObject.name + " is colliding with " + coll.gameObject.name);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement