init
This commit is contained in:
commit
862afc9b7a
478 changed files with 197737 additions and 0 deletions
18
Assets/Scripts/DrawSceneLine.cs
Normal file
18
Assets/Scripts/DrawSceneLine.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class DrawSceneLine : MonoBehaviour {
|
||||
|
||||
public Transform from;
|
||||
public Transform to;
|
||||
|
||||
void OnDrawGizmosSelected(){
|
||||
if (from != null && to != null){
|
||||
Gizmos.color = Color.cyan;
|
||||
Gizmos.DrawLine(from.position, to.position);
|
||||
Gizmos.DrawSphere(from.position, 0.15f);
|
||||
Gizmos.DrawSphere(to.position, 0.15f);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue