public AlphaFadeTransition(IAlphaFadable obj, float from, float to, bool queue = true, float speed = 0.05f, Action onBegin = null, Action onEnd = null)
     : base(obj, queue, speed, onBegin, onEnd)
 {
     _target = obj;
     _from = from;
     _to = to;
     _d = (_to - _from) * speed;
 }
示例#2
0
 public AlphaFadeTransition(IAlphaFadable obj, float from, float to, bool queue = true, float speed = 0.05f, Action onBegin = null, Action onEnd = null)
     : base(obj, queue, speed, onBegin, onEnd)
 {
     _target = obj;
     _from   = from;
     _to     = to;
     _d      = (_to - _from) * speed;
 }