public void Reset() { isTracked = false; face_rect = new Rectangle(); th_check = false; center=new Point[]{new Point(0,0), new Point(0,0)}; }
public Form1() { InitializeComponent(); SetAnimation(); //ConnectToServer(); //gamestate = GameState.GAME; myTimer.Tick += new EventHandler(GameDraw); myTimer.Interval = 25; myTimer.Start(); controlTimer.Tick += new EventHandler(GameControlReset); controlTimer.Interval = 500; myplayerTimer.Tick += new EventHandler(PlayerStateReset); myplayerTimer.Interval = 5000; FPU = new FrameProcessor(); FPU.Reset(); IFormatter formatter = new BinaryFormatter(); FileStream fs = new FileStream("../../hist.dat", FileMode.Open); HistSerial hs = (HistSerial)formatter.Deserialize(fs); hist = hs.hist; FPU.SetHist(hist); }