public static MtActionInt Create(float duration, int from, int to, Action <int> onValueChanged) { MtActionInt actValue = new MtActionInt(); if (actValue.InitWithDuration(duration, from, to, onValueChanged)) { return(actValue); } return(null); }
public override MtAction Reverse() { return(MtActionInt.Create(m_duration, m_to, m_from, m_onValueChanged)); }