-
UISlicedSprite, UITiledSprite, UIFilledSprite の削除。UISpriteの中にそれぞれの機能が入ってる
-
スプライト名をリネームしやすくなった(renameボタンがついた)
-
スプライト一覧画面にスプライト名が出てる
-
IgnoreTimeScaleを削除して、代わりにRealTimeクラスが追加。現実時間はこっちから取ると良いらしい
-
UISpriteのプロパティに "Dimensions" が追加。前まで画像のピクセル数がtransform.localscaleに入ってたけど、ピクセル数はDimensions、倍率がtransform.localscaleに入るようになってる。
-
TweenWidth と TweenHeight が追加。Dimensionsの値(それぞれ横幅と縦幅)を動的に変える。UISpriteがアタッチされてないオブジェクトに付けるとnullエラー
-
eventReciever周りが大きく変更
-
名称がnotifyに変更
-
文字列で直接メソッド名を書いていたのが、対象のオブジェクトのpublicなメソッドをプルダウンリストで選択できるようになった。逆に、privateなメソッドは呼び出せなくなった。
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 UnityEditor; | |
using System.Linq; | |
using UniRx; | |
[CustomEditor(typeof(ObserveTransition))] | |
public class ObserveTransitionInspector : Editor { | |
public override void OnInspectorGUI() | |
{ | |
serializedObject.Update(); | |
var transition = serializedObject.targetObject as ObserveTransition; |
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
Shader "Custom/Mosaic" { | |
Properties { | |
_MainTex ("Texture", 2D) = "white" {} | |
_MosaicScale ("Mosaic", Range(0.01, 10)) = 1 | |
} | |
SubShader { | |
Pass { | |
GLSLPROGRAM | |
#ifdef VERTEX | |
varying vec2 vUv; |
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; | |
using System.Collections; | |
/// <summary> | |
/// 全てのTimerクラスをupdateさせる | |
/// </summary> | |
public class TimerExecutor : MonoBehaviour { | |
public event Action timeUpdate; | |
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
public class AnimationObserver : MonoBehaviour { | |
public Action animationEndNotify; | |
public void Notify() | |
{ | |
if(animationEndNotify != null)animationEndNotify(); | |
} | |
} |
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; | |
public class HasOne<T> where T : IDataAccessObject, new() | |
{ | |
public T node { get; set; } | |
public HasOne(Func<T, bool> predicate) | |
{ | |
node = AcitiveRecord<T>.Find(predicate); | |
} |
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; | |
using System.Linq; | |
using System.Collections.Generic; | |
using System; | |
public class AcitiveRecord<T> where T : IDataAccessObject, new() | |
{ | |
static protected MyDatabase db; |
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.Xml; | |
using System.Xml.Serialization; | |
using System.IO; | |
/// <summary> | |
/// クラスオブジェクトとxmlをシリアライズ・デシリアライズするクラス | |
/// </summary> | |
public static class MyXmlSerializer | |
{ |
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> | |
/// コンテンツを選択するカーソルインタフェース | |
/// </summary> | |
public interface ICursol | |
{ | |
/// <summary> | |
/// 現在選択中のコンテンツ | |
/// </summary> | |
ICursolContent content { set; get; } | |
/// <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; | |
using System.Collections.Generic; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string[] sankisei = { "ぐっさん", "おっくん", "きたけー", "たけお"}; | |
List<string> shuffle = new List<string>(); | |
Ramdom r = new Random(); |