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 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 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.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 System.Collections; | |
/// <summary> | |
/// キャラクターコントローラー2D | |
/// アタッチした時以下を追加 | |
/// ・Animator | |
/// ・Rigidbody2D | |
/// ・BoxCollider | |
/// ・SpriteRenderer |
NewerOlder