using System.Collections;using System.Collections.Generic;using UnityEngine;publicclassTeleporterObject:MonoBehaviour{publicint ID;Mesh mesh =null;// Use this for initializationvoid Start (){this.mesh =GetComponent<MeshFilter>().sharedMesh;}// Update is called once per framevoid Update (){}#if UNITY_EDITORprivatevoidOnDrawGizmos(){
Gizmos.color = Color.green;if(this.mesh!=null){
Gizmos.DrawWireMesh(this.mesh,this.transform.position + Vector3.up *this.transform.localScale.y *.5f,this.transform.rotation,this.transform.localScale);}
UnityEditor.Handles.color = Color.red;
UnityEditor.Handles.ArrowHandleCap(0,this.transform.position,this.transform.rotation,1f, EventType.Repaint);}#endif}
using System.Collections;using System.Collections.Generic;using UnityEngine;public class TeleporterObject : MonoBehaviour { public int ID; Mesh mesh = null; // Use this for initialization void Start () { this.mesh = GetComponent<M