示例#1
0
    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);
    }
示例#2
0
 public override MtAction Reverse()
 {
     return(MtActionInt.Create(m_duration, m_to, m_from, m_onValueChanged));
 }