Super Knight : Enter the Dungeon
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class SpwnPoint : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public float radius = 1f;
|
|
|
|
|
void OnDrawGizmosSelected()
|
|
|
|
|
{
|
|
|
|
|
//기즈모의 색을 변경
|
|
|
|
|
Gizmos.color = new Color32(145, 244, 139, 210);
|
|
|
|
|
Gizmos.DrawSphere(transform.position, radius);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Vector3 getPoint;
|
|
|
|
|
public Vector3 PointCreate()
|
|
|
|
|
{
|
|
|
|
|
getPoint = Random.onUnitSphere;
|
|
|
|
|
getPoint.y = 0;
|
|
|
|
|
|
|
|
|
|
return (getPoint * Random.Range(0, radius)) + transform.position;
|
|
|
|
|
}
|
|
|
|
|
}
|