
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
Random.Range가 유니티 엔진과 시스템 중에 모호하다고 하는데
이게 레벨을 구성하는 중에 갑자기 밑줄이 뜨더라구요
지금은 UnityEngine.Random.Range 로 사용 중인데 갑자기 모호하다고 하는 이유가 무엇일까욤?
(비주얼스튜디오, 유니티 다시 최신으로 다운 받은 후 확인까지 완료했습니다)

작성한 코드 및 에러 메세지
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class cat : MonoBehaviour
{
float full = 5f;
float energy = 0f;
bool isFull = false;
public int type; // 0=normalCat 1=fatCat
// Start is called before the first frame update
void Start()
{
float x = Random.Range(-8.5f, 8.5f); // < 해당 부분 *CS0104
float y = 30f;
transform.position = new Vector3(x, y, 0);
if (type == 1)
{
full = 10f;
}
}
오류
CS0104 'Random'은(는) 'UnityEngine.Random' 및 'System.Random' 사이에 모호한 참조입니다. Assembly-CSharp C:\Users\user\uniCreate\catvsdog\Assets\Scripts\cat.cs 16 활성
