Example #1
0
    // 实例对象在具体调用时只需要简单地修改接口中的参数即可实现移动
    public SSAction ApplyCCMoveToAction(GameObject obj, Vector3 target, float speed, ISSActionCallback completed)
    {
        CCMoveToAction ac = obj.AddComponent <CCMoveToAction>();

        ac.RunAction(target, speed, completed);
        return(ac);
    }