private A10PistonConfig.LevelItem PatternItem(string Name, int LV0, int LV1, int LV2, int LV3) { A10PistonConfig.LevelItem PItem = new A10PistonConfig.LevelItem(); PItem.LvName = Name; PItem.Lv0 = LV0; PItem.Lv1 = LV1; PItem.Lv2 = LV2; PItem.Lv3 = LV3; return(PItem); }
private int GetLevel(Yotogi.ExcitementStatus Status, A10PistonConfig.LevelItem LevelItem) { try { switch (Status) { case Yotogi.ExcitementStatus.Minus: { return(LevelItem.Lv0); } case Yotogi.ExcitementStatus.Small: { return(LevelItem.Lv1); } case Yotogi.ExcitementStatus.Medium: { return(LevelItem.Lv2); } case Yotogi.ExcitementStatus.Large: { return(LevelItem.Lv3); } default: { return(-1); } } } catch { Debug.Log("Error:GetLevel"); return(-1); } }