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; | |
/// <summary> | |
/// キャラクターコントローラー2D | |
/// アタッチした時以下を追加 | |
/// ・Animator | |
/// ・Rigidbody2D | |
/// ・BoxCollider | |
/// ・SpriteRenderer |
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 UnityEditor; | |
using System.Collections; | |
/// <summary> | |
/// エディタ拡張でマインスイーパーをやる | |
/// </summary> | |
public class MineSweeperEditor : EditorWindow{ | |
private const int MINE_NUM = 15; //爆弾の数 |
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 UnityEditor; | |
using System.Collections; | |
/// <summary> | |
/// 電卓のエディタ拡張 | |
/// </summary> | |
public class CalculatorEditor : EditorWindow | |
{ | |
//ボタンのサイズ |
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 UnityEditor; | |
using System; | |
/// <summary> | |
/// 名前のアルファベット順でソートする | |
/// </summary> | |
public class NameSort : BaseHierarchySort | |
{ | |
public override int Compare(GameObject lhs, GameObject rhs) |
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.UI; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
/// <summary> | |
/// UIをローカライズさせるエディタ拡張 | |
/// </summary> |
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.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class EnumToDropDown : MonoBehaviour | |
{ | |
[SerializeField] | |
private Dropdown dropDown; | |
/// <summary> |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Test2 : MonoBehaviour { | |
[SerializeField] | |
private Vector3 vec; | |
[SerializeField] | |
private GameObject dummySphere; |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Test3 : MonoBehaviour | |
{ | |
//弾道を表示するための点のプレハブ | |
[SerializeField] | |
private GameObject dummyObjPref; |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Test3 : MonoBehaviour | |
{ | |
//弾道を表示するための点のプレハブ | |
[SerializeField] | |
private GameObject dummyObjPref; |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
/// <summary> | |
/// 初速を加えてから地面に落ちるまでの時間を計算する | |
/// </summary> | |
public class Test4 : MonoBehaviour | |
{ | |
//初速 |
OlderNewer