View NullCheckExample_01.cs
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> | |
/// AudioSourceへの参照がセットされているか確認する処理です。 | |
/// </Summary> | |
void CheckAudioReference() | |
{ | |
if (bgmAudio == null) | |
{ | |
bgmAudio = gameObject.GetComponent<AudioSource>(); | |
} | |
} |
View ShowDebugSample.cs
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
int userNumber = 1234; | |
Debug.Log($"{userNumber}"); | |
// これだと変数の中身だけ表示されて「わけがわからないよ」となる | |
// 1234 | |
Debug.Log($"userNumber : {userNumber}"); | |
// これなら変数名も出力される | |
// userNumber : 1234 |
View EditorScriptSample.cs
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
Assets/Images/EditorScriptSample.cs(7,35): error CS0246: The type or namespace name 'Editor' could not be found (are you missing a using directive or an assembly reference?) |
View CoroutineWaitSample.cs
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
IEnumerator WaitSample() | |
{ | |
// 1.0秒処理を待ちます。 | |
yield return new WaitForSeconds(1.0f); | |
// 待ち時間が終わった後に後続の処理が行われます。 | |
} |
View AdSample_over_3_3.cs
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 UnityEngine.Advertisements; | |
using UnityEngine.UI; | |
/// <Summary> | |
/// 広告のテストを行うサンプルコードです。 | |
/// </Summary> | |
public class AdSample : MonoBehaviour, IUnityAdsListener | |
{ | |
// Unity Adsを有効化した時に発行されるIDを記載します。 |
View AdSample_2_x.cs
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 UnityEngine.Advertisements; | |
/// <Summary> | |
/// 広告のテストを行うサンプルコードです。 | |
/// </Summary> | |
public class AdSample : MonoBehaviour | |
{ | |
string placementId = "rewardedVideo"; |
View project.pbxproj_post.txt
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
developmentRegion = en; | |
hasScannedForEncodings = 1; | |
knownRegions = ( | |
English, | |
en, | |
ja, | |
"ja-JP", | |
); |
View project.pbxproj_pre.txt
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
developmentRegion = English; | |
hasScannedForEncodings = 1; | |
knownRegions = ( | |
English, | |
en, | |
ja, | |
"ja-JP", | |
); |
View project.pbxproj.txt
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
developmentRegion = English; | |
hasScannedForEncodings = 1; | |
knownRegions = ( | |
English, | |
Japanese, | |
French, | |
German, | |
en, | |
); |
View project.pbxproj_post.txt
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
developmentRegion = en; | |
hasScannedForEncodings = 1; | |
knownRegions = ( | |
English, | |
French, | |
German, | |
en, | |
ja, | |
"ja-JP", | |
Base, |