public void PlayBtnPressed() { switch (currentState) { case GameStatus.next: waveNumber += 1; totalEnemies += waveNumber; break; default: totalEnemies = 3; TotalEscaped = 0; totalMoney = 10; TowerController.Shared.DestroyAllTowers(); TowerController.Shared.RenametagsBuildSite(); totalMoneyLbl.text = TotalMoney.ToString(); totalEscapeLbl.text = "Escaped: " + TotalEscaped.ToString(); audioSource.PlayOneShot(SoundController.Shared.NewGame); break; } DestroyAllEnemies(); totalKilled = 0; RoundEscaped = 0; currentWaveLbl.text = "Wave " + (waveNumber + 1); StartCoroutine(Spawn()); playBtn.gameObject.SetActive(false); }
public void PlayBtnPressed() { switch (currentState) { case GameStatus.next: waveNumber += 1; totalEnemies += waveNumber; break; // play game for first time or gameover default: totalEnemies = 3; TotalEscaped = 0; TotalMoney = 10; //skully spawns at begging enemiesToSpawn = 0; TowerManager.Instance.DestroyAllTower(); TowerManager.Instance.RenameTagsBuildSite(); totalMoneyLbl.text = TotalMoney.ToString(); totalEscapedLbl.text = "Escaped" + TotalEscaped + "/10"; audioSource.PlayOneShot(SoundManager.Instance.NewGame); break; } DestroyAllEnemies(); TotalKilled = 0; // only cares for this during a wave RoundEscaped = 0; //only cares for this during a wave currentWaveLbl.text = "Wave " + (waveNumber + 1); //need to spawn enemies: StartCoroutine(Spawn()); playBtn.gameObject.SetActive(false); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is OrderLineItem other && ((Uid == null && other.Uid == null) || (Uid?.Equals(other.Uid) == true)) && ((Name == null && other.Name == null) || (Name?.Equals(other.Name) == true)) && ((Quantity == null && other.Quantity == null) || (Quantity?.Equals(other.Quantity) == true)) && ((QuantityUnit == null && other.QuantityUnit == null) || (QuantityUnit?.Equals(other.QuantityUnit) == true)) && ((Note == null && other.Note == null) || (Note?.Equals(other.Note) == true)) && ((CatalogObjectId == null && other.CatalogObjectId == null) || (CatalogObjectId?.Equals(other.CatalogObjectId) == true)) && ((VariationName == null && other.VariationName == null) || (VariationName?.Equals(other.VariationName) == true)) && ((Metadata == null && other.Metadata == null) || (Metadata?.Equals(other.Metadata) == true)) && ((Modifiers == null && other.Modifiers == null) || (Modifiers?.Equals(other.Modifiers) == true)) && ((AppliedTaxes == null && other.AppliedTaxes == null) || (AppliedTaxes?.Equals(other.AppliedTaxes) == true)) && ((AppliedDiscounts == null && other.AppliedDiscounts == null) || (AppliedDiscounts?.Equals(other.AppliedDiscounts) == true)) && ((BasePriceMoney == null && other.BasePriceMoney == null) || (BasePriceMoney?.Equals(other.BasePriceMoney) == true)) && ((VariationTotalPriceMoney == null && other.VariationTotalPriceMoney == null) || (VariationTotalPriceMoney?.Equals(other.VariationTotalPriceMoney) == true)) && ((GrossSalesMoney == null && other.GrossSalesMoney == null) || (GrossSalesMoney?.Equals(other.GrossSalesMoney) == true)) && ((TotalTaxMoney == null && other.TotalTaxMoney == null) || (TotalTaxMoney?.Equals(other.TotalTaxMoney) == true)) && ((TotalDiscountMoney == null && other.TotalDiscountMoney == null) || (TotalDiscountMoney?.Equals(other.TotalDiscountMoney) == true)) && ((TotalMoney == null && other.TotalMoney == null) || (TotalMoney?.Equals(other.TotalMoney) == true)) && ((PricingBlocklists == null && other.PricingBlocklists == null) || (PricingBlocklists?.Equals(other.PricingBlocklists) == true))); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is V1PaymentItemization other && ((Name == null && other.Name == null) || (Name?.Equals(other.Name) == true)) && ((Quantity == null && other.Quantity == null) || (Quantity?.Equals(other.Quantity) == true)) && ((ItemizationType == null && other.ItemizationType == null) || (ItemizationType?.Equals(other.ItemizationType) == true)) && ((ItemDetail == null && other.ItemDetail == null) || (ItemDetail?.Equals(other.ItemDetail) == true)) && ((Notes == null && other.Notes == null) || (Notes?.Equals(other.Notes) == true)) && ((ItemVariationName == null && other.ItemVariationName == null) || (ItemVariationName?.Equals(other.ItemVariationName) == true)) && ((TotalMoney == null && other.TotalMoney == null) || (TotalMoney?.Equals(other.TotalMoney) == true)) && ((SingleQuantityMoney == null && other.SingleQuantityMoney == null) || (SingleQuantityMoney?.Equals(other.SingleQuantityMoney) == true)) && ((GrossSalesMoney == null && other.GrossSalesMoney == null) || (GrossSalesMoney?.Equals(other.GrossSalesMoney) == true)) && ((DiscountMoney == null && other.DiscountMoney == null) || (DiscountMoney?.Equals(other.DiscountMoney) == true)) && ((NetSalesMoney == null && other.NetSalesMoney == null) || (NetSalesMoney?.Equals(other.NetSalesMoney) == true)) && ((Taxes == null && other.Taxes == null) || (Taxes?.Equals(other.Taxes) == true)) && ((Discounts == null && other.Discounts == null) || (Discounts?.Equals(other.Discounts) == true)) && ((Modifiers == null && other.Modifiers == null) || (Modifiers?.Equals(other.Modifiers) == true))); }
private void ShowContractMoney(EntityData entity, string contractChangeCode) { entity.SetCurrentTable("Contract"); decimal TotalMoney, TotalChangeMoney, OriginalMoney, NewTotalMoney, ChangeMoney, BudgetMoney, AdjustMoney;; OriginalMoney = entity.GetDecimal("OriginalMoney"); BudgetMoney = entity.GetDecimal("BudgetMoney"); AdjustMoney = entity.GetDecimal("AdjustMoney"); TotalMoney = Decimal.Zero; TotalChangeMoney = Decimal.Zero; NewTotalMoney = Decimal.Zero; ChangeMoney = Decimal.Zero; foreach (DataRow dr in entity.Tables["ContractChange"].Select(string.Format("ContractChangeCode={0}", contractChangeCode), "", System.Data.DataViewRowState.CurrentRows)) { TotalMoney = dr["Money"] != DBNull.Value ? (decimal)dr["Money"] : Decimal.Zero; TotalChangeMoney = dr["TotalChangeMoney"] != DBNull.Value ? (decimal)dr["TotalChangeMoney"] : Decimal.Zero; NewTotalMoney = dr["NewMoney"] != DBNull.Value ? (decimal)dr["NewMoney"] : Decimal.Zero; ChangeMoney = dr["ChangeMoney"] != DBNull.Value ? (decimal)dr["ChangeMoney"] : Decimal.Zero; } lblTotalMoney.Text = TotalMoney.ToString("N"); lblTotalChangeMoney.Text = TotalChangeMoney.ToString("N"); lblChangeMoney.Text = ChangeMoney.ToString("N"); lblNewTotalMoney.Text = NewTotalMoney.ToString("N"); }
public void SaveGameInfo() { string filePath = Application.persistentDataPath + "/Game.xml"; if (!File.Exists(filePath)) { XmlDocument xmlDoc = new XmlDocument(); //头结点 XmlElement root = xmlDoc.CreateElement("Game"); XmlElement localMoney = xmlDoc.CreateElement("TotalMoney"); localMoney.InnerText = TotalMoney.ToString(); XmlElement localBgVolume = xmlDoc.CreateElement("BgVolume"); localBgVolume.InnerText = BgVolume.ToString(); XmlElement localEffectVolume = xmlDoc.CreateElement("EffectVolume"); localEffectVolume.InnerText = EffectVolume.ToString(); XmlElement localLevel2Lock = xmlDoc.CreateElement("Level2Lock"); localLevel2Lock.InnerText = Level2Lock.ToString(); XmlElement localLevel3Lock = xmlDoc.CreateElement("Level3Lock"); localLevel3Lock.InnerText = Level3Lock.ToString(); root.AppendChild(localMoney); root.AppendChild(localBgVolume); root.AppendChild(localEffectVolume); root.AppendChild(localLevel2Lock); root.AppendChild(localLevel3Lock); xmlDoc.AppendChild(root); xmlDoc.Save(filePath); } }
private void Awake() { Pose = GetComponent <SteamVR_Behaviour_Pose>(); fixedJoint = GetComponent <FixedJoint>(); gridPosition = FindObjectOfType <Grid>(); MoneyCounter = FindObjectOfType <TotalMoney>(); }
public void playBtnPressed() { switch (currentState) { case gameStatus.next: waveNumber += 1; totalEnemies += waveNumber; break; default: totalEnemies = 3; //DEFAULT number of enemies to Spawn: Changeable. TotalEscaped = 0; TotalMoney = 10; TowerManager.Instance.DestroyAllTower(); TowerManager.Instance.RenameTagsBuildSite(); totalMoneyLbl.text = TotalMoney.ToString(); totalEscapedLbl.text = "Escaped: " + TotalEscaped + "/10"; break; } DestroyAllEnemies(); TotalKilled = 0; RoundEscaped = 0; currentWaveLbl.text = "Wave: " + (waveNumber + 1); StartCoroutine(spawn()); playBtn.gameObject.SetActive(false); }
public void playBtnPressed() { switch (currentState) { case gameStatus.next: waveNumber += 1; break; default: waveNumber = 1; TowerManager.Instance.destroyAllTowers(); TowerManager.Instance.renameTagsBildSites(); TotalEscaped = 0; TotalMoney = 15; totalMoneyLbl.text = TotalMoney.ToString(); totalEscapedLbl.text = "Escaped " + TotalEscaped + "/" + totalEnemies; audioSource.PlayOneShot(SoundManager.Instance.Newgame); break; } DestroyAllEnemies(); TotalKilled = 0; RoundEscaped = 0; currentWaveLbl.text = "Level " + waveNumber.ToString(); StartCoroutine(Spawn()); playBtn.gameObject.SetActive(false); }
protected void ToString(List <string> toStringOutput) { toStringOutput.Add($"Id = {(Id == null ? "null" : Id == string.Empty ? "" : Id)}"); toStringOutput.Add($"LocationId = {(LocationId == null ? "null" : LocationId == string.Empty ? "" : LocationId)}"); toStringOutput.Add($"ReferenceId = {(ReferenceId == null ? "null" : ReferenceId == string.Empty ? "" : ReferenceId)}"); toStringOutput.Add($"Source = {(Source == null ? "null" : Source.ToString())}"); toStringOutput.Add($"CustomerId = {(CustomerId == null ? "null" : CustomerId == string.Empty ? "" : CustomerId)}"); toStringOutput.Add($"LineItems = {(LineItems == null ? "null" : $"[{ string.Join(", ", LineItems)} ]")}"); toStringOutput.Add($"Taxes = {(Taxes == null ? "null" : $"[{ string.Join(", ", Taxes)} ]")}"); toStringOutput.Add($"Discounts = {(Discounts == null ? "null" : $"[{ string.Join(", ", Discounts)} ]")}"); toStringOutput.Add($"ServiceCharges = {(ServiceCharges == null ? "null" : $"[{ string.Join(", ", ServiceCharges)} ]")}"); toStringOutput.Add($"Fulfillments = {(Fulfillments == null ? "null" : $"[{ string.Join(", ", Fulfillments)} ]")}"); toStringOutput.Add($"Returns = {(Returns == null ? "null" : $"[{ string.Join(", ", Returns)} ]")}"); toStringOutput.Add($"ReturnAmounts = {(ReturnAmounts == null ? "null" : ReturnAmounts.ToString())}"); toStringOutput.Add($"NetAmounts = {(NetAmounts == null ? "null" : NetAmounts.ToString())}"); toStringOutput.Add($"RoundingAdjustment = {(RoundingAdjustment == null ? "null" : RoundingAdjustment.ToString())}"); toStringOutput.Add($"Tenders = {(Tenders == null ? "null" : $"[{ string.Join(", ", Tenders)} ]")}"); toStringOutput.Add($"Refunds = {(Refunds == null ? "null" : $"[{ string.Join(", ", Refunds)} ]")}"); toStringOutput.Add($"Metadata = {(Metadata == null ? "null" : Metadata.ToString())}"); toStringOutput.Add($"CreatedAt = {(CreatedAt == null ? "null" : CreatedAt == string.Empty ? "" : CreatedAt)}"); toStringOutput.Add($"UpdatedAt = {(UpdatedAt == null ? "null" : UpdatedAt == string.Empty ? "" : UpdatedAt)}"); toStringOutput.Add($"ClosedAt = {(ClosedAt == null ? "null" : ClosedAt == string.Empty ? "" : ClosedAt)}"); toStringOutput.Add($"State = {(State == null ? "null" : State.ToString())}"); toStringOutput.Add($"Version = {(Version == null ? "null" : Version.ToString())}"); toStringOutput.Add($"TotalMoney = {(TotalMoney == null ? "null" : TotalMoney.ToString())}"); toStringOutput.Add($"TotalTaxMoney = {(TotalTaxMoney == null ? "null" : TotalTaxMoney.ToString())}"); toStringOutput.Add($"TotalDiscountMoney = {(TotalDiscountMoney == null ? "null" : TotalDiscountMoney.ToString())}"); toStringOutput.Add($"TotalTipMoney = {(TotalTipMoney == null ? "null" : TotalTipMoney.ToString())}"); toStringOutput.Add($"TotalServiceChargeMoney = {(TotalServiceChargeMoney == null ? "null" : TotalServiceChargeMoney.ToString())}"); toStringOutput.Add($"PricingOptions = {(PricingOptions == null ? "null" : PricingOptions.ToString())}"); toStringOutput.Add($"Rewards = {(Rewards == null ? "null" : $"[{ string.Join(", ", Rewards)} ]")}"); }
protected void ToString(List <string> toStringOutput) { toStringOutput.Add($"Id = {(Id == null ? "null" : Id == string.Empty ? "" : Id)}"); toStringOutput.Add($"CreatedAt = {(CreatedAt == null ? "null" : CreatedAt == string.Empty ? "" : CreatedAt)}"); toStringOutput.Add($"UpdatedAt = {(UpdatedAt == null ? "null" : UpdatedAt == string.Empty ? "" : UpdatedAt)}"); toStringOutput.Add($"AmountMoney = {(AmountMoney == null ? "null" : AmountMoney.ToString())}"); toStringOutput.Add($"TipMoney = {(TipMoney == null ? "null" : TipMoney.ToString())}"); toStringOutput.Add($"TotalMoney = {(TotalMoney == null ? "null" : TotalMoney.ToString())}"); toStringOutput.Add($"AppFeeMoney = {(AppFeeMoney == null ? "null" : AppFeeMoney.ToString())}"); toStringOutput.Add($"ProcessingFee = {(ProcessingFee == null ? "null" : $"[{ string.Join(", ", ProcessingFee)} ]")}"); toStringOutput.Add($"RefundedMoney = {(RefundedMoney == null ? "null" : RefundedMoney.ToString())}"); toStringOutput.Add($"Status = {(Status == null ? "null" : Status == string.Empty ? "" : Status)}"); toStringOutput.Add($"DelayDuration = {(DelayDuration == null ? "null" : DelayDuration == string.Empty ? "" : DelayDuration)}"); toStringOutput.Add($"DelayAction = {(DelayAction == null ? "null" : DelayAction == string.Empty ? "" : DelayAction)}"); toStringOutput.Add($"DelayedUntil = {(DelayedUntil == null ? "null" : DelayedUntil == string.Empty ? "" : DelayedUntil)}"); toStringOutput.Add($"SourceType = {(SourceType == null ? "null" : SourceType == string.Empty ? "" : SourceType)}"); toStringOutput.Add($"CardDetails = {(CardDetails == null ? "null" : CardDetails.ToString())}"); toStringOutput.Add($"LocationId = {(LocationId == null ? "null" : LocationId == string.Empty ? "" : LocationId)}"); toStringOutput.Add($"OrderId = {(OrderId == null ? "null" : OrderId == string.Empty ? "" : OrderId)}"); toStringOutput.Add($"ReferenceId = {(ReferenceId == null ? "null" : ReferenceId == string.Empty ? "" : ReferenceId)}"); toStringOutput.Add($"CustomerId = {(CustomerId == null ? "null" : CustomerId == string.Empty ? "" : CustomerId)}"); toStringOutput.Add($"EmployeeId = {(EmployeeId == null ? "null" : EmployeeId == string.Empty ? "" : EmployeeId)}"); toStringOutput.Add($"RefundIds = {(RefundIds == null ? "null" : $"[{ string.Join(", ", RefundIds)} ]")}"); toStringOutput.Add($"RiskEvaluation = {(RiskEvaluation == null ? "null" : RiskEvaluation.ToString())}"); toStringOutput.Add($"BuyerEmailAddress = {(BuyerEmailAddress == null ? "null" : BuyerEmailAddress == string.Empty ? "" : BuyerEmailAddress)}"); toStringOutput.Add($"BillingAddress = {(BillingAddress == null ? "null" : BillingAddress.ToString())}"); toStringOutput.Add($"ShippingAddress = {(ShippingAddress == null ? "null" : ShippingAddress.ToString())}"); toStringOutput.Add($"Note = {(Note == null ? "null" : Note == string.Empty ? "" : Note)}"); toStringOutput.Add($"StatementDescriptionIdentifier = {(StatementDescriptionIdentifier == null ? "null" : StatementDescriptionIdentifier == string.Empty ? "" : StatementDescriptionIdentifier)}"); toStringOutput.Add($"ReceiptNumber = {(ReceiptNumber == null ? "null" : ReceiptNumber == string.Empty ? "" : ReceiptNumber)}"); toStringOutput.Add($"ReceiptUrl = {(ReceiptUrl == null ? "null" : ReceiptUrl == string.Empty ? "" : ReceiptUrl)}"); }
//Control events when play button pressed public void playBtnPressed() { //if currentState = gameStatus.next wave number will increse and total enemy for next round will add up with waveNumber //else all things have to be reset switch (currentState) { case gameStatus.next: waveNumber += 1; totalEnemies += waveNumber; break; default: totalEnemies = 4; //have to be 5 TotalEscaped = 0; TotalMoney = 10; enemiesToSpawn = 0; waveNumber = 0; TowerManager.Instance.DestroyAllTower(); TowerManager.Instance.RenameBuiltSitesTags(); totalMoneyLbl.text = TotalMoney.ToString(); totalEscapedLbl.text = "Escaped " + TotalEscaped + "/" + escapeLimit; audioSource.PlayOneShot(SoundManager.Instance.NewGame); break; } //reset parameters for new wave DestroyAllEnemies(); TotalKilled = 0; RoundEscaped = 0; currentWaveLbl.text = "Wave " + (waveNumber + 1); //for new wave we have to call spawn again with new values StartCoroutine(spawn()); playBtn.gameObject.SetActive(false); }
public void playBtnPressed() { switch (currentState) { case gameStatus.next: waveNumber += 1; totalEnemies += waveNumber; break; default: totalEnemies = 3; TotalEscaped = 0; TotalMoney = 10; totalMoneyLbl.text = TotalMoney.ToString(); TowerManager.Instance.DestroyAllTower(); TowerManager.Instance.RenameTagsBuildSites(); totalEscapedLbl.text = "Escaped" + TotalEscaped + "/10"; audioSource.PlayOneShot(SoundManager.Instance.NewGame); break; } DestroyAllEnemies(); TotalKilled = 0; RoundEscaped = 0; currentWaveLbl.text = "Wave " + (waveNumber + 1).ToString(); StartCoroutine(spawn()); playBtn.gameObject.SetActive(false); }
public void playButtonPressed() { switch (currentState) { case GameStatus.next: waveNumber++; totalEnemies += waveNumber; break; default: // reset everything including labels, towers on screen, total values totalEnemies = 3; TotalEscaped = 0; totalMoney = 10; waveNumber = 1; totalMoneyLabel.text = TotalMoney.ToString(); enemiesEscapedLabel.text = "Escaped : " + totalEscaped + "/10"; currentWaveLabel.text = "Wave " + waveNumber; TowerManager.getInstance().renameBuildSiteTag(); TowerManager.getInstance().destroyAllTowers(); audioSource.PlayOneShot(SoundManager.getInstance().NewGame); break; } destroyAllEnemies(); AccessoryManager.getInstance().resetAccessoriesList(); TotalKilled = 0; RoundEscaped = 0; currentWaveLabel.text = "Wave " + waveNumber; StartCoroutine(spawn()); playButton.gameObject.SetActive(false); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is OrderReturnServiceCharge other && ((Uid == null && other.Uid == null) || (Uid?.Equals(other.Uid) == true)) && ((SourceServiceChargeUid == null && other.SourceServiceChargeUid == null) || (SourceServiceChargeUid?.Equals(other.SourceServiceChargeUid) == true)) && ((Name == null && other.Name == null) || (Name?.Equals(other.Name) == true)) && ((CatalogObjectId == null && other.CatalogObjectId == null) || (CatalogObjectId?.Equals(other.CatalogObjectId) == true)) && ((Percentage == null && other.Percentage == null) || (Percentage?.Equals(other.Percentage) == true)) && ((AmountMoney == null && other.AmountMoney == null) || (AmountMoney?.Equals(other.AmountMoney) == true)) && ((AppliedMoney == null && other.AppliedMoney == null) || (AppliedMoney?.Equals(other.AppliedMoney) == true)) && ((TotalMoney == null && other.TotalMoney == null) || (TotalMoney?.Equals(other.TotalMoney) == true)) && ((TotalTaxMoney == null && other.TotalTaxMoney == null) || (TotalTaxMoney?.Equals(other.TotalTaxMoney) == true)) && ((CalculationPhase == null && other.CalculationPhase == null) || (CalculationPhase?.Equals(other.CalculationPhase) == true)) && ((Taxable == null && other.Taxable == null) || (Taxable?.Equals(other.Taxable) == true)) && ((AppliedTaxes == null && other.AppliedTaxes == null) || (AppliedTaxes?.Equals(other.AppliedTaxes) == true))); }
public void PlayButtonPressed() { switch (currentStatus) { case GameStatus.next: waveNumber += 1; totalEnemies += waveNumber; break; default: totalEnemies = 5; TotalEscaped = 0; TotalMoney = 10; TowerManager.Instance.DestroyAllTowers(); TowerManager.Instance.RenameTagBuildSide(); totalMoneyLabel.text = TotalMoney.ToString(); totalEscapedLabel.text = TotalEscaped + " / 10"; break; } DestroyEnemies(); TotalKilled = 0; RoundEscaped = 0; currentWave.text = "Wave " + (waveNumber + 1); StartCoroutine(Spawn()); playBtn.gameObject.SetActive(false); }
public void playBtnPressed() { //Debug.Log("playBtnPressed, gameStatus = " + currentState); GameStatusBtn.gameObject.SetActive(false); switch (currentState) { case gameStatus.next: waveNumber += 1; totalEnemies += waveNumber; break; default: totalEnemies = 3; TotalEscaped = 0; waveNumber = 0; enemiesToSpawn = 0; TotalMoney = STARTING_MONEY; TowerManager.Instance.DestroyAllTowers(); TowerManager.Instance.RenameTagsBuildSites(); totalMoneyLabel.text = TotalMoney.ToString(); escapedLabel.text = "Escaped " + TotalEscaped + "/10"; GameStatusBtn.gameObject.SetActive(false); audioSource.PlayOneShot(SoundManager.Instance.NewGame); break; } DestroyAllEnemies(); TotalKilled = 0; roundEscaped = 0; waveLabel.text = "Wave " + (waveNumber + 1); StartCoroutine(spawn()); playBtn.gameObject.SetActive(false); }
public void PlayButton_Pressed() { switch (currentState) { case gameStatus.next: waveNumber += 1; TotalEnemies += waveNumber + 1; break; default: TotalEnemies = 3; TotalEscaped = 0; TotalMoney = 10; TowerManager.Instace.DestroyAllTowers(); TowerManager.Instace.RenameTagsBuildSites(); totalMoneyLbl.text = TotalMoney.ToString(); totalEscapeLbl.text = "Escaped " + TotalEscaped + "/10"; audioSource.PlayOneShot(SoundManager.Instace.NewGame); break; } DistroyAllEnemies(); TotalKills = 0; RoundEscaped = 0; curentWaveLbl.text = "Wave " + (waveNumber + 1); //Mic delay de 2 secunde la inceput :) StartCoroutine(WaitForSeconds(2)); playButton.gameObject.SetActive(false); ShowTowers(true); //SartSpawning StartCoroutine(SpawnEnemyInterval()); }
public void playButtonPressed() { Debug.Log("pressed"); switch (currentState) { case gameStatus.next: waveNumber += 1; totalEnemies += waveNumber; break; default: totalEnemies = 3; totalEscaped = 0; TotalMoney = 40; waveNumber = 0; TowerManager.Instance.destroyAllTowers(); TowerManager.Instance.renameBuildsiteTags(); lblTotalMoney.text = TotalMoney.ToString(); lblTotalEscaped.text = $"Escaped {TotalEscaped}/10"; enemiesToSpawn = 0; break; } DestroyAllEnemies(); TotalKilled = 0; WaveEscaped = 0; lblCurrentWave.text = $" Wave {waveNumber + 1}"; StartCoroutine(EnemySpawner()); playButton.gameObject.SetActive(false); }
public void PlayBtnPressed() { switch (currentState) { case gameStatus.next: waveNumber++; totalEnemies += waveNumber; break; default: totalEnemies = 3; TotalEscaped = 0; TotalMoney = 10; EnemiesToSpawn = 0; YouWin.SetActive(false); TowerManager.Instance.DestroyAllTower(); TowerManager.Instance.RenameTagsBuildSite(); totalMoneytext.text = TotalMoney.ToString(); audioSource.PlayOneShot(SoundManager.Instance.NewGame); totalEscapedtext.text = "Excaped: " + TotalEscaped + " /10"; break; } DestroyAllEnemies(); TotalKilled = 0; RoundEscaped = 0; CurrentWavetext.text = "Wave: " + (waveNumber + 1); StartCoroutine(Spawn()); PlayBtn.gameObject.SetActive(false); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is V1Tender other && ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) && ((Type == null && other.Type == null) || (Type?.Equals(other.Type) == true)) && ((Name == null && other.Name == null) || (Name?.Equals(other.Name) == true)) && ((EmployeeId == null && other.EmployeeId == null) || (EmployeeId?.Equals(other.EmployeeId) == true)) && ((ReceiptUrl == null && other.ReceiptUrl == null) || (ReceiptUrl?.Equals(other.ReceiptUrl) == true)) && ((CardBrand == null && other.CardBrand == null) || (CardBrand?.Equals(other.CardBrand) == true)) && ((PanSuffix == null && other.PanSuffix == null) || (PanSuffix?.Equals(other.PanSuffix) == true)) && ((EntryMethod == null && other.EntryMethod == null) || (EntryMethod?.Equals(other.EntryMethod) == true)) && ((PaymentNote == null && other.PaymentNote == null) || (PaymentNote?.Equals(other.PaymentNote) == true)) && ((TotalMoney == null && other.TotalMoney == null) || (TotalMoney?.Equals(other.TotalMoney) == true)) && ((TenderedMoney == null && other.TenderedMoney == null) || (TenderedMoney?.Equals(other.TenderedMoney) == true)) && ((TenderedAt == null && other.TenderedAt == null) || (TenderedAt?.Equals(other.TenderedAt) == true)) && ((SettledAt == null && other.SettledAt == null) || (SettledAt?.Equals(other.SettledAt) == true)) && ((ChangeBackMoney == null && other.ChangeBackMoney == null) || (ChangeBackMoney?.Equals(other.ChangeBackMoney) == true)) && ((RefundedMoney == null && other.RefundedMoney == null) || (RefundedMoney?.Equals(other.RefundedMoney) == true)) && ((IsExchange == null && other.IsExchange == null) || (IsExchange?.Equals(other.IsExchange) == true))); }
public void PlayButtonPressed() { switch (currentState) { case GameStatus.Next: currentWave += 1; if (currentWave <= enemies.Length) { typeOfEnemies = currentWave; } totalEnemies += currentWave; break; default: totalEnemies = 3; TotalEscaped = 0; TotalMoney = 10; typeOfEnemies = 0; TowerManager.Instance.DestroyAllTowers(); TowerManager.Instance.RenameTagsBuildSites(); totalMoneyLbl.text = TotalMoney.ToString(); totalEscapedLbl.text = "Escaped " + TotalEscaped + "/10"; soundFx.PlayOneShot(SoundManager.Instance.Newgame); break; } DestroyAllEnemies(); TotalKilled = RoundEscaped = 0; currentWaveLbl.text = "Wave " + (currentWave + 1); StartCoroutine(Spawn()); playBtn.gameObject.SetActive(false); }
public void PlayButtonPressed() // Вызывается после нажатия Play, устанавливает все начальные значения { switch (currentState) { case gameStatus.next: waveNumber++; totalEnemies += waveNumber; break; default: totalEnemies = 1; TotalEscaped = 0; TotalMoney = 10; enemiesToSpawn = 0; totalMoneyLabel.text = TotalMoney.ToString(); TowerManager.Instance.DestroyAllTowers(); TowerManager.Instance.RenameTagBuildSite(); totalEscapedLabel.text = "Escaped " + totalEscaped + "/" + totalEnemies; audioSource.PlayOneShot(SoundManager.Instance.NewGame); break; } DestroyEnemies(); RoundEscaped = 0; TotalKilled = 0; currentWave.text = "Wave " + (waveNumber); StartCoroutine(Spawn()); playBtn.gameObject.SetActive(false); }
public override int GetHashCode() { int hashCode = -685311361; if (TotalMoney != null) { hashCode += TotalMoney.GetHashCode(); } if (TaxMoney != null) { hashCode += TaxMoney.GetHashCode(); } if (DiscountMoney != null) { hashCode += DiscountMoney.GetHashCode(); } if (TipMoney != null) { hashCode += TipMoney.GetHashCode(); } if (ServiceChargeMoney != null) { hashCode += ServiceChargeMoney.GetHashCode(); } return(hashCode); }
protected void ToString(List <string> toStringOutput) { toStringOutput.Add($"TotalMoney = {(TotalMoney == null ? "null" : TotalMoney.ToString())}"); toStringOutput.Add($"TaxMoney = {(TaxMoney == null ? "null" : TaxMoney.ToString())}"); toStringOutput.Add($"DiscountMoney = {(DiscountMoney == null ? "null" : DiscountMoney.ToString())}"); toStringOutput.Add($"TipMoney = {(TipMoney == null ? "null" : TipMoney.ToString())}"); toStringOutput.Add($"ServiceChargeMoney = {(ServiceChargeMoney == null ? "null" : ServiceChargeMoney.ToString())}"); }
//[EnumFlags] //public Hand.AttachmentFlags attachmentFlags = 0; void Start() { color[0].a = 0.5f; color[1].a = 1f; m_Pose = GetComponent <SteamVR_Behaviour_Pose>(); m_Hand = GetComponent <Hand>(); m_TotalMoney = FindObjectOfType <TotalMoney>(); }
protected void ToString(List <string> toStringOutput) { toStringOutput.Add($"Id = {(Id == null ? "null" : Id == string.Empty ? "" : Id)}"); toStringOutput.Add($"Status = {(Status == null ? "null" : Status.ToString())}"); toStringOutput.Add($"TotalMoney = {(TotalMoney == null ? "null" : TotalMoney.ToString())}"); toStringOutput.Add($"InitiatedAt = {(InitiatedAt == null ? "null" : InitiatedAt == string.Empty ? "" : InitiatedAt)}"); toStringOutput.Add($"BankAccountId = {(BankAccountId == null ? "null" : BankAccountId == string.Empty ? "" : BankAccountId)}"); toStringOutput.Add($"Entries = {(Entries == null ? "null" : $"[{ string.Join(", ", Entries)} ]")}"); }
/// <summary> /// 装载控件数据 /// </summary> public void LoadData() { try { string projectCode = Request["ProjectCode"] + ""; string paymentCode = Request["PaymentCode"] + ""; EntityData entity = DAL.EntityDAO.PaymentDAO.GetStandard_PaymentByCode(paymentCode); if (entity.HasRecord()) { string contractCode = entity.GetString("ContractCode"); EntityData entityCon = DAL.EntityDAO.ContractDAO.GetStandard_ContractByCode(contractCode); if (entityCon.HasRecord()) { lblProjectName.Text = BLL.ProjectRule.GetProjectName(projectCode); lblContractName.Text = entityCon.GetString("ContractName"); lblContractID.Text = entityCon.GetString("ContractID"); lblSupplierName.Text = entity.GetString("SupplyName"); lblCheckOpinion.Text = HttpUtility.HtmlEncode(entity.GetString("CheckOpinion")).Replace("\n", "<br>"); //显示合同金额 decimal TotalMoney, TotalChangeMoney, ChangeMoney, OriginalMoney, BudgetMoney, AdjustMoney, NewTotalMoney; TotalMoney = entityCon.GetDecimal("TotalMoney"); OriginalMoney = entityCon.GetDecimal("OriginalMoney"); BudgetMoney = entityCon.GetDecimal("BudgetMoney"); AdjustMoney = entityCon.GetDecimal("AdjustMoney"); TotalChangeMoney = TotalMoney - OriginalMoney; ChangeMoney = BLL.MathRule.SumColumn(entityCon.Tables["ContractChange"].Select("Status in ( 1,2)", "", System.Data.DataViewRowState.CurrentRows), "ChangeMoney"); NewTotalMoney = TotalMoney + ChangeMoney; lblTotalMoney.Text = TotalMoney.ToString("N"); lblTotalChangeMoney.Text = TotalChangeMoney.ToString("N"); lblChangeMoney.Text = ChangeMoney.ToString("N"); lblNewTotalMoney.Text = NewTotalMoney.ToString("N"); } decimal negAHMoney, TotalItemMoney, TotalPayMoney; TotalItemMoney = entity.GetDecimal("Money"); negAHMoney = -BLL.CBSRule.GetAHMoney("", "", "", contractCode, "1", ""); TotalPayMoney = TotalItemMoney - negAHMoney; lblTotalPayMoney.Text = TotalPayMoney.ToString("N"); lblNegAHMoney.Text = negAHMoney.ToString("N"); lblTotalItemMoney.Text = TotalItemMoney.ToString("N"); } } catch (Exception ex) { ApplicationLog.WriteLog(this.ToString(), ex, ""); } }
public void playBtnPressed() { if (pause == false) { int enemyId = 0; switch (currentState) { case GameStatus.next: waveNumber++; if (waveNumber >= 0 && waveNumber < 4) { totalEnemies += 2; enemyId = 0; } else if (waveNumber >= 4 && waveNumber < 7) { totalEnemies += 1; enemyId = 1; } else if (waveNumber >= 7 && waveNumber < 9) { totalEnemies += 2; enemyId = 1; } else if (waveNumber >= 9 && waveNumber < 11) { totalEnemies += 1; enemyId = 2; } else if (waveNumber >= 11) { totalEnemies += 2; enemyId = 2; } break; default: totalEnemies = 6; totalEscaped = 0; TotalMoney = 10; totalMoneyLbl.text = TotalMoney.ToString(); totalEscapedLbl.text = "Escaped: " + totalEscaped.ToString() + "/10"; TowerManager.Instance.destroyAllTowers(); TowerManager.Instance.renameTagsBuildSite(); audioSource.PlayOneShot(SoundManager.Instance.NewGame); break; } DestroyAllEnemies(); totalKilled = 0; roundEscaped = 0; currentWaveLbl.text = "Wave " + (waveNumber + 1); StartCoroutine(spawn(enemyId)); playButton.gameObject.SetActive(false); TowerManager.Instance.destroyAllProjectiles(); } }
void Awake() { if (!m_MoneyManager) { m_MoneyManager = FindObjectOfType <TotalMoney>(); } if (!m_TurretBehaviour) { m_TurretBehaviour = GetComponent <TurretBehaviour>(); } }
/// <summary> /// 获取所有帐户的充值和消费金额 /// </summary> /// <returns></returns> public int GetTotalMoney(TotalMoney Tmoney) { StringBuilder strSql = new StringBuilder(); if (Tmoney == TotalMoney.账户充值金额) { strSql.Append("select sum(YuE) from tbl_Member"); } else { strSql.Append("select sum(JinE) from tbl_ConDetailed where XiaoFeiFangShi <> 0"); } DbCommand cmd = this._db.GetSqlStringCommand(strSql.ToString()); return Convert.ToInt32(DbHelper.GetSingle(cmd, this._db)); }