16 lines
471 B
C#
16 lines
471 B
C#
|
|
using UnityEngine;
|
|||
|
|
|
|||
|
|
namespace DestroyIt
|
|||
|
|
{
|
|||
|
|
public class ClingPoint : MonoBehaviour
|
|||
|
|
{
|
|||
|
|
public int chanceToCling = 75;
|
|||
|
|
|
|||
|
|
private void OnDrawGizmos()
|
|||
|
|
{
|
|||
|
|
Gizmos.color = Color.yellow;
|
|||
|
|
Gizmos.DrawWireSphere(this.transform.position - (this.transform.forward * 0.025f), .01f);
|
|||
|
|
Gizmos.DrawRay(this.transform.position - (this.transform.forward * 0.025f), this.transform.forward * 0.075f);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|