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.IO; | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
using UnityEditor.iOS.Xcode; | |
public class AddFrameworkPostProcessBuild : MonoBehaviour { | |
[PostProcessBuild ] |
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; | |
public class NumSettings : MonoBehaviour { | |
private UISprite sprite; | |
private UISprite childSprite; | |
private bool hasChild = false; | |
public bool activeSelf{private set; get;} |
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 System.Linq; | |
public class BitmapNumberManager : MonoBehaviour { | |
private List<NumSettings> numSprites = new List<NumSettings>(); | |
private float firstNumPosX; | |
private const float initializeOffsetX = 38f; |
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 UnityEditor; | |
[CustomEditor(typeof(FunctionManager))] | |
[CanEditMultipleObjects] | |
public class FunctionManagerEditor : Editor { | |
public override void OnInspectorGUI() { |
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; | |
[RequireComponent(typeof(UISprite))] | |
public class FunctionManager : MonoBehaviour { | |
public enum FuncType{ | |
HelpFunc = 0, | |
OnOffSound, | |
ShowOsusumeApps, | |
ShowRanking, |
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
-(void) registerAdmob | |
{ | |
NSLog(@"-> registerAdmob initializing Admob start"); | |
UnityViewController* controller = (UnityViewController*)UnityGetGLViewController(); | |
EAGLView* view = (EAGLView*)[controller view]; | |
NSLog(@"EAGLView frame size:(%f, %f)", view.frame.size.width, view.frame.size.height); | |
CGFloat scaleSize = [UIScreen mainScreen].scale; | |
NSLog(@"UIScreen scale:%f", scaleSize); | |
CGFloat screenWidth = view.frame.size.height * scaleSize; | |
CGFloat bannerWidth = GAD_SIZE_320x50.width; |
NewerOlder