smart
unknown
plain_text
16 days ago
815 B
7
Indexable
Never
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(); } }
Leave a Comment