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
#import "UIViewController+EventInterceptor.h" | |
#import "EventLogger.h" | |
#import <objc/runtime.h> | |
@implementation UIViewController (EventInterceptor) | |
+(void) load | |
{ | |
//Replace the noop viewDidAppear with our own implementation | |
class_replaceMethod(self, @selector(viewDidAppear:), (IMP) viewDidAppear, "v@:@"); |
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
//#if UNITY_EDITOR | |
//#define DEBUG | |
//#endif | |
using UnityEngine; | |
using System.Collections; | |
using System; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
using UnityEngineInternal; |
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
NSString* doc = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]; | |
NSString* lib = [NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES) objectAtIndex:0]; | |
float version = [[[UIDevice currentDevice] systemVersion] floatValue]; | |
if (version < 5.1) | |
{ | |
u_int8_t b = 1; | |
setxattr([doc fileSystemRepresentation], "com.apple.MobileBackup", &b, 1, 0, 0); | |
setxattr([lib fileSystemRepresentation], "com.apple.MobileBackup", &b, 1, 0, 0); |
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 UnityEngine.SocialPlatforms; | |
using UnityEngine.SocialPlatforms.GameCenter; | |
public class GameCenterConnector : MonoBehaviour | |
{ | |
// GameCenterのユーザ認証を行う | |
void Start () | |
{ |
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
# This file looks empty when viewed with "vi". In fact, there is one | |
# '~', so users with no AppleVolumes file in their home directory get | |
# their home directory by default. | |
# | |
# volume format: | |
# :DEFAULT: [all of the default options except volume name] | |
# path [name] [casefold:x] [options:z,l,j] \ | |
# [allow:a,@b,c,d] [deny:a,@b,c,d] [dbpath:path] [password:p] \ | |
# [rwlist:a,@b,c,d] [rolist:a,@b,c,d] [limitsize:value in bytes] \ |
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
// C# example | |
using UnityEditor; | |
using System.IO; | |
using System.Collections; | |
using UnityEngine; | |
using System.Collections.Generic; | |
class PerformBuild | |
{ | |
static string[] GetBuildScenes() |
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
// | |
// UISegmentedControl+Background.h | |
// | |
// Created by Maksym Huk on 4/3/13. | |
// Copyright (c) 2013 Maksym Huk. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
@interface UISegmentedControl (Background) |
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 UnityEditor; | |
using System.Collections; | |
public class Autobuilder { | |
static void PerformBuild() | |
{ | |
string [] scenes = { @"Assets/Scenes/Main Game.unity", | |
@"Assets/Scenes/Main Menu.unity", |
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 2012 Calvin Rien | |
* (http://the.darktable.com) | |
* | |
* 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 | |
* |
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
// | |
// TCHorizontalSelectorView.m | |
// TwinCodersLibrary | |
// | |
// Created by Guillermo Gutiérrez on 16/01/13. | |
// Copyright (c) 2013 TwinCoders S.L. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |