Camfight.Player.update C# (CSharp) Method

update() public method

public update ( int sector ) : void
sector int
return void
        public void update(int sector)
        {
            int v=20;
            if (sector < 6)
            {
                this.x -= v;
                if (this.x < 0) this.x = 0;
            }
            else if (sector >= 9)
            {
                this.x += v;
                if (this.x > 300) this.x = 300;
            }
        }