void Awake() { instance = this; tweenRot = GetComponent <TweenRotation>(); button = GetComponent <UIButton>(); buttonEvent = new EventDelegate(this, "OnCustomModeOn"); button.onClick.Add(buttonEvent); }
public MultiplayerPage(GameSettings settings) { _settings = settings; var mode = new CustomMode(settings.BoardWidth, settings.BoardHeight, settings.Bomb); int playerWindowWidth = (int)(Constants.WINDOW_WIDTH * Constants.SCREENS_RATIO); _playerProps = new DrawingProperties( settings.BoardWidth, settings.BoardHeight, mode.SquareSize, playerWindowWidth ); _opponentProps = new DrawingProperties( settings.BoardHeight, settings.BoardWidth, Constants.OPPONENT_SQUARE_SIZE, (int)(Constants.WINDOW_WIDTH * (1 - Constants.SCREENS_RATIO))) { MarginLeftOffset = playerWindowWidth, IsRotated = true }; }
public void send_updateCustomModeSettings(CustomMode customMode, Dictionary<string, string> paramMap) #endif { oprot_.WriteMessageBegin(new TMessage("updateCustomModeSettings", TMessageType.Call, seqid_)); updateCustomModeSettings_args args = new updateCustomModeSettings_args(); args.CustomMode = customMode; args.ParamMap = paramMap; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }
public IAsyncResult send_updateCustomModeSettings(AsyncCallback callback, object state, CustomMode customMode, Dictionary<string, string> paramMap)
public void updateCustomModeSettings(CustomMode customMode, Dictionary<string, string> paramMap) { #if !SILVERLIGHT send_updateCustomModeSettings(customMode, paramMap); recv_updateCustomModeSettings(); #else var asyncResult = Begin_updateCustomModeSettings(null, null, customMode, paramMap); End_updateCustomModeSettings(asyncResult); #endif }
public IAsyncResult Begin_updateCustomModeSettings(AsyncCallback callback, object state, CustomMode customMode, Dictionary<string, string> paramMap) { return send_updateCustomModeSettings(callback, state, customMode, paramMap); }
private void SetMode(InkCanvasEditingMode _mode, CustomMode _CustomMode) { SetStroke(); _InkCanvas.EditingMode = _mode; _CurCustomMode = _CustomMode; }