Skip to content

Instantly share code, notes, and snippets.

View tayl0r's full-sized avatar

Taylor Steil tayl0r

View GitHub Profile
@tayl0r
tayl0r / link.xml
Created March 13, 2014 21:35
unity link.xml
@tayl0r
tayl0r / ProgressBar.shader
Created March 6, 2014 02:26
unity3d shader based progress bar
Shader "Custom/ProgressBar"
{
Properties
{
_MaskTex ("Mask Tex", 2D) = "white" {}
_BarTex ("Bar Tex", 2D) = "white" {}
_Progress ("Progress", range(0, 1)) = .5
_C1 ("C1", Color) = (1, 1, 1, 0)
//_C2 ("C2", Color) = (0, 0, 0, 1)
I/Unity ( 1559): purchase failed: User canceled. (response: -1005:User cancelled)
I/Unity ( 1559):
I/Unity ( 1559): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 53)
I/Unity ( 1559):
I/Unity ( 1559): INVENTORY: credits_5000_199
I/Unity ( 1559):
I/Unity ( 1559): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 53)
I/Unity ( 1559):
I/Prime31 ( 1559): Attempting to consume an item that has not been purchased. Aborting to avoid exception. sku: credits_5000_199
I/Unity ( 1559): INVENTORY: credits_25000_499
using System.IO;
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
public static class PostBuildTrigger
{
// Frameworks Ids - These ids have been generated by creating a project using Xcode then
// extracting the values from the generated project.pbxproj. The format of this
// file is not documented by Apple so the correct algorithm for generating these
public GUIText[] m_numbers = new GUIText[100];
void Start() {
if (m_timer) {
for (int i = 0; i < 11; ++i) {
GUIText number = Instantiate(m_timer) as GUIText;
number.text = i.ToString();
number.enabled = false;
Debug.Log(i);