Esempio n. 1
0
    public void moveRole(GameObject role, Vector3 mid_pos, Vector3 end_pos, float speed)
    {
        List <SSAction> list = new List <SSAction>();

        list.Add(CCMoveToAction.getSSAction(mid_pos, speed));
        list.Add(CCMoveToAction.getSSAction(end_pos, speed));
        rolemove = CCSequenceAction.getSSAction(0, 1, list);
        runAction(role, rolemove, this);
    }
Esempio n. 2
0
 public void moveBoat(GameObject boat, Vector3 pos, float speed)
 {
     boatmove = CCMoveToAction.getSSAction(pos, speed);
     runAction(boat, boatmove, this);
 }