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
CLGeocoder *geocoding = [[CLGeocoder alloc] init]; | |
CLLocation *location = [[CLLocation alloc] initWithLatitude:35.169688 longitude:136.899713]; | |
NSLocale *locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"]; | |
[geocoding reverseGeocodeLocation:location preferredLocale:locale completionHandler:^(NSArray< CLPlacemark *> * __nullable placemarks, NSError * __nullable error) { | |
CLPlacemark *placemark = placemarks.firstObject; | |
NSLog(@"country:%@", placemark.country); | |
NSLog(@"isoCountryCode:%@", placemark.ISOcountryCode); | |
}]; | |
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 UnityEngine.Advertisements; | |
public class UnityAdsScript : MonoBehaviour { | |
// Use this for initialization | |
void Start () { | |
// ゲームIDを入力して、Unity Adsを初期化する | |
Advertisement.Initialize ("123456789"); |
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 MainSoundScript : MonoBehaviour { | |
public bool DontDestroyEnabled = true; | |
// Use this for initialization | |
void Start () { | |
if (DontDestroyEnabled) { | |
// Sceneを遷移してもオブジェクトが消えないようにする |
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
<?xml version="1.0" encoding="utf-8"?> | |
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | |
<padding android:left="10dp" android:top="10dp" | |
android:right="10dp" android:bottom="10dp" /> | |
<corners android:radius="4dp" /> | |
<gradient | |
android:angle="270" | |
android:startColor="#ff0000" | |
android:endColor="#0000ff" | |
android:type="linear" /> |