유나 드래곤폼 추가중
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class _ObjectsMakeBase : MonoBehaviour
|
||||
{
|
||||
public GameObject[] m_makeObjs;
|
||||
|
||||
public float GetRandomValue(float value)
|
||||
{
|
||||
return Random.Range(-value, value);
|
||||
}
|
||||
|
||||
public float GetRandomValue2(float value)
|
||||
{
|
||||
return Random.Range(0, value);
|
||||
}
|
||||
|
||||
public Vector3 GetRandomVector(Vector3 value)
|
||||
{
|
||||
Vector3 result;
|
||||
result.x = GetRandomValue(value.x);
|
||||
result.y = GetRandomValue(value.y);
|
||||
result.z = GetRandomValue(value.z);
|
||||
return result;
|
||||
}
|
||||
|
||||
public Vector3 GetRandomVector2(Vector3 value)
|
||||
{
|
||||
Vector3 result;
|
||||
result.x = GetRandomValue2(value.x);
|
||||
result.y = GetRandomValue2(value.y);
|
||||
result.z = GetRandomValue2(value.z);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user