Не могу понять, вот проблем юнити
Assets\Scripts\LuckyGame.cs(36,16): error CS0104: 'Random' is an ambiguous reference between 'UnityEngine.Random' and 'System.Random'
А код тут
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
using UnityEngine;
using System;
using UnityEngine.Monetization;
using UnityEngine.SceneManagement;
public class LuckyGame : MonoBehaviour
{
public int price;
private int Rate;
public Text priceText;
public Text rateText;
public void StartGame()
{
if(Main.money > Rate)
{
StartCoroutine(LuckGame());
}
}
void Update()
{
priceText.text = price + "";
rateText.text = Rate + "";
}
IEnumerator LuckGame()
{
price = Random.Range(0, 11);
Main.money += price;
yield return new WaitForSeconds(0.5f);
price = 0;
}
public void RatePlus()
{
Rate += 1;
}
public void RateMinus()
{
Rate -= 1;
}
}