public void SendWay(int Way) { var userIndex = Program.FormMain.Users.FindIndex(C => C.ConnectionID == Context.ConnectionId); dispath = Dispath.MyInstance; dispath.pressWay(userIndex, Way); }
public void iamStarted() { dispath = Dispath.MyInstance; //dispath.Time = Program.FormMain.Time*60*5; dispath.map.createSnake(Program.FormMain.CountPlayerSetting, Program.FormMain.CountBots, Program.FormMain.BotsSetting); dispath.MotorTick += Dispath_MotorTick; }
public FormMain() { InitializeComponent(); dispath = Dispath.MyInstance; map = new Map(); Users = new List <User>(); dispath.StartGame(); }