示例#1
0
    public override void Enter()
    {
        base.Enter();
        var color = MtColorTo.Create(3, Color.blue);

        m_tfCube.RunAction(color);
    }
示例#2
0
    public static MtColorTo Create(float duration, float red, float green, float blue, float alpha)
    {
        MtColorTo colorTo = new MtColorTo();

        if (colorTo.InitWithDuration(duration, red, green, blue, alpha))
        {
            return(colorTo);
        }
        return(null);
    }
示例#3
0
 public override MtICloneable Clone()
 {
     return(MtColorTo.Create(m_duration, m_to.r, m_to.g, m_to.b, m_to.a));
 }