This file contains 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
bool HelloWorld::areSpritesColliding(cocos2d::CCSprite *spr1, cocos2d::CCSprite *spr2, bool pp) { | |
bool isColliding = false; | |
CCRect intersection; | |
CCRect r1 = spr1->boundingBox(); | |
CCRect r2 = spr2->boundingBox(); | |
// Look for simple bounding box collision | |
if (r1.intersectsRect(r2)) { |
This file contains 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
// LoadingScreenManager | |
// -------------------------------- | |
// built by Martin Nerurkar (http://www.martin.nerurkar.de) | |
// for Nowhere Prophet (http://www.noprophet.com) | |
// | |
// Licensed under GNU General Public License v3.0 | |
// http://www.gnu.org/licenses/gpl-3.0.txt | |
using UnityEngine; | |
using UnityEngine.UI; |
This file contains 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; | |
public class Draw : MonoBehaviour | |
{ | |
struct GUILine | |
{ | |
public Vector2 startPt; | |
public Vector2 endPt; | |
} |
This file contains 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.Security.Cryptography; | |
using System.Text; | |
public class EncryptedPlayerPrefs { | |
// Encrypted PlayerPrefs | |
// Written by Sven Magnus | |
// MD5 code by Matthew Wegner (from [url]http://www.unifycommunity.com/wiki/index.php?title=MD5[/url]) |
This file contains 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
/// <summary> | |
/// Curved Layout Group Created by Freezy - http://www.ElicitIce.com | |
/// Posted on Unity Forums http://forum.unity3d.com/threads/script-curved-layout.403985/ | |
/// | |
/// Free for any use and alteration, source code may not be sold without my permission. | |
/// If you make improvements on this script please share them with the community. | |
/// | |
/// </summary> | |
namespace UnityEngine.UI.Extensions |