smart
unknown
plain_text
a year ago
815 B
14
Indexable
private int smartLookShowedLevels = -1;
private int SmartLookShowedLevels
{
get
{
if(smartLookShowedLevels < 0)
{
smartLookShowedLevels = PlayerPrefs.GetInt("SmartLook", 0);
}
return smartLookShowedLevels;
}
set
{
smartLookShowedLevels = value;
PlayerPrefs.SetInt("SmartLook", smartLookShowedLevels);
PlayerPrefs.Save();
}
}
public void OnStartLevel()
{
SmartLookShowedLevels++;
bool shouldRecord = SmartLookShowedLevels <= maxLevelToRecordSmartLook;
bool isRecording = Smartlook.IsRecording();
if (shouldRecord && !isRecording)
{
Smartlook.StartRecording();
}
else if (!shouldRecord && isRecording)
{
Smartlook.StopRecording();
}
}Editor is loading...
Leave a Comment