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 System.Collections; | |
| /// <summary> | |
| /// An editor script which deletes cache info. | |
| /// | |
| /// NOTE: | |
| /// Delete all AssetBundle content that has been cached by the current application. | |
| /// This function is not available to WebPlayer applications that use the shared cache. |
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; | |
| public class PickupAndMove : MonoBehaviour | |
| { | |
| public GameObject targetObject; | |
| public GameObject noTargetObject; // 선택하면 안되는 오브젝트(테이블). | |
| private int dragFingerIndex = -1; |
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 python | |
| import sys, os.path | |
| install_path = sys.argv[1] | |
| target_platform = sys.argv[2] | |
| if target_platform != "iPhone": sys.exit() | |
| info_plist_path = os.path.join(install_path, 'Info.plist') |
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
| diff -r 6e8e22fe6d82 Assets/NGUI/Scripts/Internal/UIWidget.cs | |
| --- a/Assets/NGUI/Scripts/Internal/UIWidget.cs Thu Aug 08 12:15:03 2013 +0900 | |
| +++ b/Assets/NGUI/Scripts/Internal/UIWidget.cs Thu Aug 08 12:15:07 2013 +0900 | |
| @@ -7,6 +7,8 @@ | |
| #define OLD_UNITY | |
| #endif | |
| +#define DYNAMIC_FONT_BUG_FIX | |
| + | |
| using UnityEngine; |
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
| /* Copyright (c) 2012 Google Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software | |
| * distributed under the License is distributed on an "AS IS" BASIS, |
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
| // | |
| // Cydia is automaticly installed on every jailbroken device, so you can check for Jailbreak like this: | |
| // | |
| if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Applications/Cydia.app"]){ | |
| NSLog(@"Jailbreak detected"); | |
| } | |
| // |
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/python | |
| # | |
| # Run this script to add various icon files to info.plist | |
| # which is needed to support iOS7 icon image files. | |
| # | |
| # (C)2013 Kim, Hyoun Woo | |
| # | |
| import sys |
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; | |
| using System.Collections.Generic; | |
| public class GameEvent | |
| { | |
| } | |
| public class EventMessenger | |
| { |
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 "Custom/Hemisphere_Lighting" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| _SkyColor("Sky Color",Color)=(1,1,1,1) | |
| _GroundColor("Ground Color",Color)=(0,0,0,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
| public static class TransformHelper | |
| { | |
| public static Transform GetChild(this Transform self, string name) | |
| { | |
| Transform t = null; | |
| if(name != "") | |
| t = self.Find(name); | |
| if(t == null) | |
| t = self; | |
| return t; |