public static MtSpeed Create(MtActionInterval action, float speed) { MtSpeed _speed = new MtSpeed(); if (_speed.InitWithAction(action, speed)) { return(_speed); } return(null); }
public static MtRepeatForever Create(MtActionInterval action) { MtRepeatForever ret = new MtRepeatForever(); if (ret.InitWithAction(action)) { return(ret); } return(null); }
public static MtEaseExponentialIn Create(MtActionInterval action) { MtEaseExponentialIn easeExpoIn = new MtEaseExponentialIn(); if (easeExpoIn.InitWithAction(action)) { return(easeExpoIn); } return(null); }
public static MtEaseExponentialInOut Create(MtActionInterval action) { MtEaseExponentialInOut easeExpoInOut = new MtEaseExponentialInOut(); if (easeExpoInOut.InitWithAction(action)) { return(easeExpoInOut); } return(null); }
public bool InitWithAction(MtActionInterval action) { Debug.Assert(action != null, "action can't be null!"); if (action == null) { Debug.Log("MtRepeatForever.InitWithAction error:action is null!"); return(false); } m_innerAction = action; return(true); }
protected bool InitWithAction(MtActionInterval action, float speed) { Debug.Assert(action != null, "action must not be NULL"); if (action == null) { Debug.Log("MtSpeed::InitWithAction error: action is null!"); return(false); } m_speed = speed; m_innerAction = action; return(true); }
protected bool InitWithAction(MtActionInterval action) { Debug.Assert(action != null, "action couldn't be null!"); if (action == null) { return(false); } if (base.InitWithDuration(action.Duration)) { m_inner = action; return(true); } return(false); }