public static CCPhysicAction getAction(float speedx) { CCPhysicAction action = CreateInstance <CCPhysicAction>(); action.speedx = speedx; return(action); }
public void MoveDisk(Disk disk) { count++; Complete = SSActionEventType.Started; CCPhysicAction action = CCPhysicAction.getAction(disk.speed); //实例化为物理运动对象 addAction(disk.gameObject, action, this); }