Skip to content

Instantly share code, notes, and snippets.

View paveltimofeev's full-sized avatar

Pavel Timofeev paveltimofeev

View GitHub Profile
using UnityEngine;
using System.Collections;
using System.IO;
using System.Runtime.InteropServices;
public class PhotoTaker : MonoBehaviour
{
// Screenshot file settings.
public string temporaryFileName = "temp.png";
public string androidStoragePath = "/mnt/sdcard/TestCameraApp";
@Naphier
Naphier / ComponentCache.cs
Last active February 1, 2016 09:36
CacheBehaviour alternative
using UnityEngine;
using System.Collections.Generic;
public class ComponentCache
{
public enum LogMessageLevel { all, error, none}
LogMessageLevel logMessageLevel = LogMessageLevel.error;
private GameObject _gameObject;
private List<Component> _components = new List<Component>();
<?xml version="1.0" encoding="utf-16"?>
<StorableColorTheme xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Keys>
<string>ErrorForegroundColor</string>
<string>ErrorBackgroundColor</string>
<string>WarningForegroundColor</string>
<string>WarningBackgroundColor</string>
<string>VerboseForegroundColor</string>
<string>VerboseBackgroundColor</string>
<string>DebugForegroundColor</string>