void BackSwords() { Sword1.SetActive(false); Sword2.SetActive(false); switch (SwordsOwned) { case 0: Back1.SetActive(false); Back2.SetActive(false); DamageOutput = 0; break; case 1: Back1.SetActive(true); Back2.SetActive(false); DamageOutput = 1; break; case 2: Back1.SetActive(true); Back2.SetActive(true); DamageOutput = 2; break; } }
public override string ToString() { return(MarketId.ToString() + "," + MarketOffDatetime.ToString("yyyy-MM-dd HH:mm:ss") + "," + SnapshotDatetime.ToString("yyyy-MM-dd HH:mm:ss") + "," + SecondsBeforeOff.ToString() + "," + SelectionId.ToString() + "," + SelectionName.ToString() + "," + (Back3 == 0 ? @"\N" : Back3.ToString()) + "," + (Back3Vol == 0 ? @"\N" : Back3Vol.ToString()) + "," + (Back2 == 0 ? @"\N" : Back2.ToString()) + "," + (Back2Vol == 0 ? @"\N" : Back2Vol.ToString()) + "," + (Back == 0 ? @"\N" : Back.ToString()) + "," + (BackVol == 0 ? @"\N" : BackVol.ToString()) + "," + (Lay == 0 ? @"\N" : Lay.ToString()) + "," + (LayVol == 0 ? @"\N" : LayVol.ToString()) + "," + (Lay2 == 0 ? @"\N" : Lay2.ToString()) + "," + (Lay2Vol == 0 ? @"\N" : Lay2Vol.ToString()) + "," + (Lay3 == 0 ? @"\N" : Lay3.ToString()) + "," + (Lay3Vol == 0 ? @"\N" : Lay3Vol.ToString()) + "," + (Trade ? "1" : "0") + "," + (LastTradedPrice == 0 ? @"\N" : LastTradedPrice.ToString()) + "," + CumulTradedVolSelection.ToString() + "," + CumulTradedVolMarket.ToString() + "," + (BecomesNonRunner ? "1" : "0") + "," + (ReductionFactorToApply > 0 ? ReductionFactorToApply.ToString() : @"\N") + "," + (Midpoint == 0 ? @"\N" : Midpoint.ToString()) + "," + (WeightedAverage == 0 ? @"\N" : WeightedAverage.ToString()) ); }