Example #1
0
    public static MtSpeed Create(MtActionInterval action, float speed)
    {
        MtSpeed _speed = new MtSpeed();

        if (_speed.InitWithAction(action, speed))
        {
            return(_speed);
        }
        return(null);
    }
Example #2
0
    public static MtRepeatForever Create(MtActionInterval action)
    {
        MtRepeatForever ret = new MtRepeatForever();

        if (ret.InitWithAction(action))
        {
            return(ret);
        }
        return(null);
    }
Example #3
0
    public static MtEaseExponentialIn Create(MtActionInterval action)
    {
        MtEaseExponentialIn easeExpoIn = new MtEaseExponentialIn();

        if (easeExpoIn.InitWithAction(action))
        {
            return(easeExpoIn);
        }
        return(null);
    }
Example #4
0
    public static MtEaseExponentialInOut Create(MtActionInterval action)
    {
        MtEaseExponentialInOut easeExpoInOut = new MtEaseExponentialInOut();

        if (easeExpoInOut.InitWithAction(action))
        {
            return(easeExpoInOut);
        }
        return(null);
    }
Example #5
0
 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);
 }
Example #6
0
 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);
 }
Example #7
0
 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);
 }