【发布时间】:2020-11-08 10:52:11
【问题描述】:
我在统一 2D 中使用此代码:
float nilaiRandom;
void Start()
{
nilaiRandom = Random.Range(1.11f, -1.88f);
transform.position = new Vector2(transform.position.x, nilaiRandom);
}
Unity 计数错误它说:Assets\Go.cs(14,23): error CS0104: 'Random' is an ambiguous reference between 'UnityEngine.Random' and 'System.Random'
我的团结到底发生了什么,解决方案是什么?请帮帮我
【问题讨论】: