示例#1
0
    void Start()
    {
        CCAction action  = null;
        CCAction action1 = null;
        CCAction action3 = null;

        action             = target.UIMoveTo(new Vector3(300, 0), 3f);
        action.SetComplete = () => { action1 = target.UIMoveToX(-300, 5f); };


        action3             = iamge.UIMoveTo(new Vector3(-300f, 150f), 3f);
        action3.SetComplete = () => { iamge.UIMoveX(350, 330, 3f); };

        action3.SetComplete = () => { CCFunction.UIMove(iamge, new Vector3(300, -150), new Vector3(-300, 150), 4f); };

        // 注意 : 场景物体请使用使用Transfrom移动
        //         ui 请使用 Text 或image 等

        tr.Move(new Vector3(-8, -3), new Vector3(8, 3), 5f);
    }
示例#2
0
 public void dazi(string content, float time)
 {
     typing.Typewriting(content, time, audio).SetComplete = () => { CCFunction.Delay(this, () => { Move(); ImageMove(); }, 0.5f); };
 }