private void CountBreakableBlockes() { blockCount = FindObjectOfType <BlockCount>(); if (tag == "Breakable") { blockCount.CountBlocks(); } }
public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.requestId) { hashcode = (hashcode * 397) + RequestId.GetHashCode(); } if (__isset.state) { hashcode = (hashcode * 397) + State.GetHashCode(); } if (__isset.messageId) { hashcode = (hashcode * 397) + MessageId.GetHashCode(); } if (__isset.eventNo) { hashcode = (hashcode * 397) + EventNo.GetHashCode(); } if (__isset.receiverCount) { hashcode = (hashcode * 397) + ReceiverCount.GetHashCode(); } if (__isset.successCount) { hashcode = (hashcode * 397) + SuccessCount.GetHashCode(); } if (__isset.failCount) { hashcode = (hashcode * 397) + FailCount.GetHashCode(); } if (__isset.cancelCount) { hashcode = (hashcode * 397) + CancelCount.GetHashCode(); } if (__isset.blockCount) { hashcode = (hashcode * 397) + BlockCount.GetHashCode(); } if (__isset.unregisterCount) { hashcode = (hashcode * 397) + UnregisterCount.GetHashCode(); } if (__isset.timestamp) { hashcode = (hashcode * 397) + Timestamp.GetHashCode(); } if (__isset.message) { hashcode = (hashcode * 397) + Message.GetHashCode(); } } return(hashcode); }
public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.requestId) { hashcode = (hashcode * 397) + RequestId.GetHashCode(); } if (__isset.state) { hashcode = (hashcode * 397) + State.GetHashCode(); } if (__isset.messageStoreRequestId) { hashcode = (hashcode * 397) + MessageStoreRequestId.GetHashCode(); } if (__isset.messageIds) { hashcode = (hashcode * 397) + TCollections.GetHashCode(MessageIds); } if (__isset.receiverCount) { hashcode = (hashcode * 397) + ReceiverCount.GetHashCode(); } if (__isset.successCount) { hashcode = (hashcode * 397) + SuccessCount.GetHashCode(); } if (__isset.failCount) { hashcode = (hashcode * 397) + FailCount.GetHashCode(); } if (__isset.blockCount) { hashcode = (hashcode * 397) + BlockCount.GetHashCode(); } if (__isset.unregisteredCount) { hashcode = (hashcode * 397) + UnregisteredCount.GetHashCode(); } if (__isset.unrelatedCount) { hashcode = (hashcode * 397) + UnrelatedCount.GetHashCode(); } if (__isset.errorDescription) { hashcode = (hashcode * 397) + ErrorDescription.GetHashCode(); } } return(hashcode); }
private void SpawnNewEnemyBlock() { Settings.enemyBlock = new Image(); changeEnemySkin(EnemyBlockCount); EnemyBlockCount++; Settings.enemyBlock.Name = "enemyBlock" + BlockCount.ToString(); Settings.enemyBlock.Height = Settings.BlockHeight; Settings.enemyBlock.Width = Settings.BlockWidth; Settings.enemyBlock.Stretch = Stretch.Fill; Canvas.SetLeft(Settings.enemyBlock, 30 + 500); Canvas.SetTop(Settings.enemyBlock, 0); AddNewBlock(Settings.enemyBlock); created = false; }
private void SpawnNewBlock() { Settings.block = new Image(); changeSkin(BlockCount); BlockCount++; ChangeBlockSpeed(BlockCount); Settings.block.Name = "Block" + BlockCount.ToString(); Settings.block.Height = Settings.BlockHeight; Settings.block.Width = Settings.BlockWidth; Settings.block.Stretch = Stretch.Fill; Canvas.SetLeft(Settings.block, 30); Canvas.SetTop(Settings.block, 0); AddNewBlock(Settings.block); }
// Use this for initialization void Start() { SpriteRenderer = GetComponent <SpriteRenderer>(); ScaleDown = GetComponent <Animator>(); CreatedPrefab = Instantiate(ParticleEffectObject, transform.position, transform.rotation); ThanosSnap = CreatedPrefab.GetComponent <ParticleSystem>(); blockCount = FindObjectOfType <BlockCount>(); blockCount.IncBlockNo(); SpriteRenderer something = GetComponent <SpriteRenderer>(); particlesprite = something.sprite; ThanosSnap.textureSheetAnimation.SetSprite(0, particlesprite); Hitsmade = 0; HitReq = Hitsprites.Length + 1; }
private void DrawScore(SKCanvas canvas) { const float offset = 30; const float height = 100; const float width = 80; SKPaint paint = new SKPaint { Color = SKColors.Orange, IsAntialias = true, Style = SKPaintStyle.Fill, StrokeWidth = 4, TextSize = height }; canvas.DrawText(BlockCount.ToString(), (float)(ActualWidth - 2 * width - offset), height, paint); }
public override string ToString() { var sb = new StringBuilder(AchFile.CharactersPerLine); sb.Append(RecordType); sb.Append(BatchCount.ToString().TrimAndPadLeft(6, '0')); sb.Append(BlockCount.ToString().TrimAndPadLeft(6, '0')); sb.Append(EntryCount.ToString().TrimAndPadLeft(8, '0')); sb.Append(EntryHash.TrimAndPadLeft(10, '0')); sb.Append((TotalDebits * 100).ToString("0").TrimAndPadLeft(12, '0')); // 123.45 => 000000012345 sb.Append((TotalCredits * 100).ToString("0").TrimAndPadLeft(12, '0')); // 123.45 => 000000012345 sb.Append(Reserved.TrimAndPadRight(39)); sb.AppendLine(); return(sb.ToString()); }
public override string ToString() { return("Block: ItemCount=" + ItemCount.ToString() + "BlockCount=" + BlockCount.ToString()); }
public override string ToString() { var sb = new StringBuilder("MessageCommitResult("); bool __first = true; if (RequestId != null && __isset.requestId) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("RequestId: "); RequestId.ToString(sb); } if (__isset.state) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("State: "); State.ToString(sb); } if (MessageStoreRequestId != null && __isset.messageStoreRequestId) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("MessageStoreRequestId: "); MessageStoreRequestId.ToString(sb); } if (MessageIds != null && __isset.messageIds) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("MessageIds: "); MessageIds.ToString(sb); } if (__isset.receiverCount) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("ReceiverCount: "); ReceiverCount.ToString(sb); } if (__isset.successCount) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("SuccessCount: "); SuccessCount.ToString(sb); } if (__isset.failCount) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("FailCount: "); FailCount.ToString(sb); } if (__isset.blockCount) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("BlockCount: "); BlockCount.ToString(sb); } if (__isset.unregisteredCount) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("UnregisteredCount: "); UnregisteredCount.ToString(sb); } if (__isset.unrelatedCount) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("UnrelatedCount: "); UnrelatedCount.ToString(sb); } if (ErrorDescription != null && __isset.errorDescription) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("ErrorDescription: "); ErrorDescription.ToString(sb); } sb.Append(")"); return(sb.ToString()); }
public override string ToString() { var sb = new StringBuilder("SendBuddyMessageResult("); bool __first = true; if (RequestId != null && __isset.requestId) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("RequestId: "); RequestId.ToString(sb); } if (__isset.state) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("State: "); State.ToString(sb); } if (MessageId != null && __isset.messageId) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("MessageId: "); MessageId.ToString(sb); } if (__isset.eventNo) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("EventNo: "); EventNo.ToString(sb); } if (__isset.receiverCount) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("ReceiverCount: "); ReceiverCount.ToString(sb); } if (__isset.successCount) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("SuccessCount: "); SuccessCount.ToString(sb); } if (__isset.failCount) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("FailCount: "); FailCount.ToString(sb); } if (__isset.cancelCount) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("CancelCount: "); CancelCount.ToString(sb); } if (__isset.blockCount) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("BlockCount: "); BlockCount.ToString(sb); } if (__isset.unregisterCount) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("UnregisterCount: "); UnregisterCount.ToString(sb); } if (__isset.timestamp) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Timestamp: "); Timestamp.ToString(sb); } if (Message != null && __isset.message) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Message: "); Message.ToString(sb); } sb.Append(")"); return(sb.ToString()); }
public OVL(BinaryReader reader) { try { header = new Header(reader); if (header.BigEndian == 1) { return; } LoadStringTable(reader); loaders = new Loader[header.LoaderCount]; for (int i = 0; i < header.LoaderCount; i++) { loaders [i] = new Loader(reader); } for (int i = 0; i < header.LoaderCount; i++) { for (int s = 0; s < loaders [i].ExtraDataCount; s++) { if (loaders [i].ExtraDataCount > 0) { data.Add(new ExtraData(reader)); } } for (int j = 0; j < loaders [i].SymbolsToResolve; j++) { loaderSymbol.Add(new LoaderSymbol(reader)); } } Static = new char[header.StaticTextLength]; Static = reader.ReadChars((int)header.StaticTextLength); blockCount = new BlockCount(reader); long position = reader.BaseStream.Position; reader.BaseStream.Position = reader.BaseStream.Length - blockCount.CompressedDataSize; compressedData = new byte[(long)blockCount.CompressedDataSize]; reader.BaseStream.Read(compressedData, 0, (int)blockCount.CompressedDataSize); unknown = new byte[(reader.BaseStream.Length - blockCount.CompressedDataSize) - position]; reader.BaseStream.Position = position; reader.Read(unknown, 0, (int)((reader.BaseStream.Length - blockCount.CompressedDataSize) - position)); reader.Close(); for (int i = 0; i < loaders.Length; i++) { loaders [i].Name = LoaderComment(loaders [i]); } for (int i = 0; i < loaderSymbol.Count; i++) { var l = loaderSymbol [i]; l.Name = SymbolComment(loaderSymbol [i]); loaderSymbol [i] = l; } stringtable = stringtable.Replace('\0', ' '); } catch (Exception e) { Console.Write(e); } }