PlayerPrefsUtil.SetBool C# (CSharp) Method

SetBool() public static method

public static SetBool ( string key, bool value ) : void
key string
value bool
return void
	public static void SetBool (string key, bool value) {
		PlayerPrefs.SetInt(
			key, 
			BoolToInt(value)
		);
	}

Usage Example

 static void ToggleMute(string key, bool value)
 {
     PlayerPrefsUtil.SetBool(
         key,
         value
         );
 }
All Usage Examples Of PlayerPrefsUtil::SetBool