📅  最后修改于: 2022-03-11 14:57:34.004000             🧑  作者: Mango
void OnDrawGizmosSelected()
{
Gizmos.color = Color.red;
Vector3 direction = transform.TransformDirection(Vector3.forward) * 5;
Gizmos.DrawRay(transform.position, direction);
}