您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
24 行
700 B
24 行
700 B
using UnityEngine;
|
|
|
|
namespace Unity.MegaCity.Gameplay
|
|
{
|
|
/// <summary>
|
|
/// Spawn point for the player
|
|
/// </summary>
|
|
public class SpawnPoint : MonoBehaviour
|
|
{
|
|
private Transform m_Transform;
|
|
private void OnDrawGizmos()
|
|
{
|
|
if (m_Transform == null)
|
|
m_Transform = transform;
|
|
|
|
var position = m_Transform.position;
|
|
Gizmos.color = Color.red;
|
|
Gizmos.DrawWireSphere(position, 10f);
|
|
Gizmos.DrawSphere(position, 1f);
|
|
Gizmos.color = Color.blue;
|
|
Gizmos.DrawLine(position, position + (m_Transform.forward * 15f) );
|
|
}
|
|
}
|
|
}
|