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; | |
public class PrefabModeTest : MonoBehaviour | |
{ | |
void Awake() | |
{ | |
Debug.Log($"Awake : Prefabモードのワタシ {this}", this); | |
} | |
void OnEnable() |
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 System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using DG.Tweening; | |
using UnityEngine; | |
// DOTweenAwaiterExtensionサンプルコード(キャンセル有り) | |
public class DOTweenAwaiterExtensionWithCancel : MonoBehaviour | |
{ | |
async void Start() |
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 System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using DG.Tweening; | |
using UnityEngine; | |
// DOTweenAwaiterExtensionサンプルコード(キャンセル処理なし) | |
public class DOTweenAwaiterExtensionSample : MonoBehaviour | |
{ | |
async void Start() |
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 System; | |
using System.Runtime.CompilerServices; | |
using System.Threading; | |
using DG.Tweening; | |
using UnityEngine; | |
/// <summary> | |
/// DOTweenをasync/awaitに返還すDOTweenAwaiterの拡張メソッド | |
/// </summary> | |
public static class DOTweenAwaiterExtension |
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 System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using UnityEngine; | |
public class MyTaskCancel : MonoBehaviour | |
{ | |
// タスクをキャンセルさせるためのCancellationTokenSource | |
private CancellationTokenSource _cts; |
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 System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using UnityEngine; | |
public class TaskDelayCacncel : MonoBehaviour | |
{ | |
// タスクをキャンセルさせるためのCancellationTokenSource | |
private CancellationTokenSource _cts; |
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 System.Threading.Tasks; | |
using UnityEngine; | |
public class AsyncAwaitWait : MonoBehaviour | |
{ | |
async void Start() | |
{ | |
// 5秒待機する | |
await ExecuteWait(); | |
Debug.Log("Complete"); |
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
version: '3' | |
services: | |
nginx: | |
image: nginx:latest | |
ports: | |
- 8080:80 | |
volumes: | |
- ./public:/usr/share/nginx/html |
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
version: '2' | |
services: | |
web: | |
build: | |
context: ./ | |
dockerfile: deploy/web.docker | |
volumes: | |
- ./:/var/www | |
ports: | |
- "8080:80" |
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
#include <LiquidCrystal.h> | |
// lcd変数生成 | |
// RS, E, D4, D5, D6, D7という引数が代入されます | |
LiquidCrystal lcd(4, 6, 10, 11, 12, 13); | |
void setup() | |
{ | |
// LCD1602なので、16文字2行を代入 | |
lcd.begin(16, 2); |