-
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 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; | |
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
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 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 Polling : MonoBehaviour { | |
public void Begin(float interval, int limit, System.Func<bool> callback) | |
{ | |
StartCoroutine(DoPolling(interval, limit, callback)); | |
} | |
IEnumerator DoPolling(float interval, int limit, System.Func<bool> callback) | |
{ | |
for(int count = 0; count < limit; count++) | |
{ |
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
func makeIncrementer() -> (Int -> String, num: Int, Int -> Int) { | |
func addOne(number: Int) -> String { | |
return String(1 + number) | |
} | |
func addOneInt(number: Int) -> Int{ | |
return number + 1 | |
} | |
return (addOne, 5, addOneInt) | |
} | |
var increment = makeIncrementer() |
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 Charcter : Photon.Monobehaviour { | |
int life = 5; | |
public void Hit() | |
{ | |
photonview.RPC("Damage"); | |
} | |
[RPC] | |
void Damage() |
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 UniRx; | |
public class SkillInput : MonoBehaviour { | |
public enum SkillType { | |
Normal, | |
Charge, | |
None |