14 lines
286 B
C#
14 lines
286 B
C#
using UnityEngine;
|
|
|
|
public class isEnabled : MonoBehaviour
|
|
{
|
|
public int needToUnlock;
|
|
public Material blackMaterial;
|
|
|
|
public void Start()
|
|
{
|
|
if(PlayerPrefs.GetInt("score") < needToUnlock)
|
|
GetComponent<MeshRenderer>().material = blackMaterial;
|
|
}
|
|
}
|