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 UniRx.Async; | |
| using UnityEngine; | |
| using System.Threading; | |
| /// <summary> | |
| /// UniTask で処理を中断させるサンプル | |
| /// </summary> | |
| public class MoveAndCancelByUniTask : MonoBehaviour | |
| { | |
| [SerializeField] float speed = 1f; |
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 UniRx.Async; | |
| using UnityEngine; | |
| /// <summary> | |
| /// UniTask で移動するサンプル(コルーチンとの比較用) | |
| /// </summary> | |
| public class MoveByUniTask : MonoBehaviour | |
| { | |
| [SerializeField] float speed = 1f; | |
| [SerializeField] float duration = 3f; |
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 System.Collections; | |
| using UnityEngine; | |
| /// <summary> | |
| /// コルーチンで移動するサンプル(UniTaskとの比較用) | |
| /// </summary> | |
| public class MoveByCoroutine : MonoBehaviour | |
| { | |
| [SerializeField] float speed = 1f; | |
| [SerializeField] float duration = 3f; |
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
| public interface IDisplay | |
| { | |
| void Open (); | |
| void Print (); | |
| void Close (); | |
| } | |
| static class IDisplayExtensions | |
| { | |
| public static void Display ( this IDisplay iDisplay ) |
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 UnityEngine.UI; | |
| /// <summary> | |
| /// (アセット動作確認用) | |
| /// キー入力でアニメーションを切り替え、画面にアニメーション名を表示する | |
| /// </summary> | |
| public class ChangeAnimation : MonoBehaviour | |
| { | |
| [SerializeField] Animator[] anims =null; |
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 UnityEngine.UI; | |
| /// <summary> | |
| /// キー入力でアニメーションを切り替え、画面にアニメーション名を表示する | |
| /// </summary> | |
| public class ChangeAnimation : MonoBehaviour | |
| { | |
| [SerializeField] Animator anim =null; | |
| [SerializeField] Text text = null; |
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 Zenject; | |
| // FromNewComponentOn()はコンポーネントを新規でアタッチする | |
| public class PronamaInputInstaller : MonoInstaller | |
| { | |
| [SerializeField] GameObject pronamaGameObject = null; | |
| public override void InstallBindings () | |
| { |
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 Zenject; | |
| // FromComponentOn()は引数のGameObjectに予めアタッチされたコンポーネントを使う | |
| public class PronamaInputInstaller : MonoInstaller | |
| { | |
| [SerializeField] GameObject pronamaGameObject; | |
| public override void InstallBindings () | |
| { |
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 DG.Tweening; | |
| using System.Linq; | |
| /// <summary> | |
| /// オバケは DOTween.Sequence で不透明度変更を繰り返す。倒されたら Sequence を止める | |
| /// </summary> | |
| public class EnemyObakeFade : MonoBehaviour, IEnemyBeaten | |
| { | |
| [SerializeField] float minAlpha = 0.2f; |
NewerOlder