예제 #1
0
파일: MtSpeed.cs 프로젝트: yjxyuna/MtTween
    public static MtSpeed Create(MtActionInterval action, float speed)
    {
        MtSpeed _speed = new MtSpeed();

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

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

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

        if (easeExpoInOut.InitWithAction(action))
        {
            return(easeExpoInOut);
        }
        return(null);
    }
예제 #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);
 }
예제 #6
0
파일: MtSpeed.cs 프로젝트: yjxyuna/MtTween
 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);
 }
예제 #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);
 }