This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- Animal.lua | |
| -- | |
| -- A simple example of a base class usng the classes library. | |
| -- | |
| -- @author PaulMoore | |
| -- | |
| -- Copyright (C) 2011 by Strange Ideas Software | |
| -- | |
| -- Permission is hereby granted, free of charge, to any person obtaining a copy | |
| -- of this software and associated documentation files (the "Software"), to deal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --[[ | |
| Why this package? | |
| Cocos2d-x CCNotificationCenter is limited to one lua function callback (observer) per target (CCObject). | |
| This simple Lua script wraps CCNotificationCenter and allows code like: | |
| addObserver(foo,'eventname') | |
| addObserver(foo2,'eventname') | |
| ]]-- | |
| -- The NotificationCenter (nc) table | |
| local nc = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
| // requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
| // MIT license | |
| (function() { | |
| var lastTime = 0; | |
| var vendors = ['ms', 'moz', 'webkit', 'o']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * requestAnimationFrame polyfill by Erik Möller & Paul Irish et. al. | |
| * https://gist.github.com/1866474 | |
| * | |
| * http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| * http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
| **/ | |
| /*jshint asi: false, browser: true, curly: true, eqeqeq: true, forin: false, newcap: true, noempty: true, strict: true, undef: true */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Updated requestAnimationFrame polyfill that uses new high-resolution timestamp | |
| // | |
| // References: | |
| // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| // https://gist.github.com/1579671 | |
| // http://updates.html5rocks.com/2012/05/requestAnimationFrame-API-now-with-sub-millisecond-precision | |
| // | |
| // Note: this is my initial stab at it, *requires additional testing* | |
| (function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """Simple HTTP Server With Upload. | |
| This module builds on BaseHTTPServer by implementing the standard GET | |
| and HEAD requests in a fairly straightforward manner. | |
| see: https://gist.github.com/UniIsland/3346170 | |
| """ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine.UI; | |
| /// <summary> | |
| /// SpriteCreator, a runtime atlassing system for Unity Sprites. | |
| /// Tries to not create any unneccessary textures, cleans all references when Flushed. | |
| /// Can use with or without the atlassing, just call AddToAtlas and Build when using atlasses. | |
| /// Full control over which atlases to add images to. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using UnityEditor; | |
| using UnityEditor.Callbacks; | |
| using UnityEditor.iOS.Xcode; | |
| using System.IO; | |
| using System.Collections.Generic; | |
| public class PostBuildProcess : MonoBehaviour | |
| { | |
| internal static void CopyAndReplaceDirectory(string srcPath, string dstPath) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Shader "UI/Fast-Default" | |
| { | |
| Properties | |
| { | |
| [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} | |
| _Color ("Tint", Color) = (1,1,1,1) | |
| } | |
| SubShader | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.IO; | |
| using UnityEngine; | |
| using UnityEditor; | |
| using UnityEditor.iOS.Xcode; | |
| using UnityEditor.Callbacks; | |
| using System.Collections; | |
| public class XcodeSettingsPostProcesser | |
| { |
OlderNewer