public void init(float speed, float angspeed, ANGLE_DIRECTION dir, float bounce,float pathz)
    {
        this.speed = speed;
        this.angspeed = angspeed;
        this.angdir = dir;
        this.bounce = bounce;
        this.pathz = pathz;

        initflag = true;
    }
Beispiel #2
0
    public PolygonData(string s)
    {
        string[] result = s.Split(',');

        timeline = int.Parse(result[0]);
        speed = float.Parse(result[1]);
        angspeed = int.Parse(result[2]);
        angdir = int.Parse(result[3]) == 0 ? ANGLE_DIRECTION.CLOCK_WISE : ANGLE_DIRECTION.COUNTER_CLOCK_WISE;
        camera_shake = int.Parse(result[4]);
        camera_shake_dir = int.Parse(result[5]);
        limit_change = int.Parse(result[6]);
    }