Skip to content

Instantly share code, notes, and snippets.

@WaylandGod
WaylandGod / CodeProfiler.cs
Created November 13, 2015 11:46 — forked from darktable/CodeProfiler.cs
Unity3D: Tweaked version of @robotduck's CodeProfiler script.
// You can switch to a regular Update() loop
// if you comment out this line. (makes debugging easier)
#define COROUTINE
//
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using UnityEngine;
using Debug = UnityEngine.Debug;
@WaylandGod
WaylandGod / TagsLayersEnumBuilder.cs
Created November 13, 2015 11:45 — forked from Namek/TagsLayersEnumBuilder.cs
Tags and Layers Enums Builder for Unity3D
#if UNITY_EDITOR
using UnityEngine;
using System.Collections;
using UnityEditor;
using System;
using System.IO;
using System.Text;
public class TagsLayersEnumBuilder : EditorWindow {
[MenuItem("Edit/Rebuild Tags And Layers Enums")]
@WaylandGod
WaylandGod / DebugConsole.cs
Created November 13, 2015 11:45 — forked from darktable/DebugConsole.cs
Unity3D: Heavily modified version of Jeremy Hollingsworth's DebugConsole script.
#define DEBUG_CONSOLE
#define DEBUG_LEVEL_LOG
#define DEBUG_LEVEL_WARN
#define DEBUG_LEVEL_ERROR
#if (UNITY_EDITOR || DEVELOPMENT_BUILD)
#define DEBUG
#endif
#if (UNITY_IOS || UNITY_ANDROID)
@WaylandGod
WaylandGod / SavWav.cs
Created November 13, 2015 11:44 — forked from darktable/SavWav.cs
Unity3D: script to save an AudioClip as a .wav file.
// Copyright (c) 2012 Calvin Rien
// http://the.darktable.com
//
// This software is provided 'as-is', without any express or implied warranty. In
// no event will the authors be held liable for any damages arising from the use
// of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it freely,
// subject to the following restrictions:
@WaylandGod
WaylandGod / LookAtPoint.cs
Created November 12, 2015 09:04 — forked from uhziel/LookAtPoint.cs
Unity3D script
using UnityEngine;
[ExecuteInEditMode]
public class LookAtPoint : MonoBehaviour {
public Vector3 lookAtPoint = Vector3.zero;
// Update is called once per frame
void Update () {
transform.LookAt (lookAtPoint);
@WaylandGod
WaylandGod / SelectPrefabsOfType.cs
Created November 11, 2015 11:45 — forked from rje/SelectPrefabsOfType.cs
Small unity utility to find all prefab objects that have a given component on them
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
using System;
using System.Reflection;
public class SelectPrefabsOfType : EditorWindow {
[MenuItem("Window/Prefab Finder")]
<?php
include("/var/www/vhosts/xxxxxcom/httpdocs/PHPUtils/dbConfig.php");
include("/var/www/vhosts/xxxxxcom/httpdocs/PHPUtils/DButils.php");
// verifies receipt from iOS in-app purchase
// returns:
// 0 - if params missing
// 1 - if receipt is valid
// 2 - if invalid receipt, or invalid response from verification server
// or bundle/in-app IDs are incorrect