// Use this for initialization void Start() { base.Start(); defaultMaterial = transform.GetChild(0).GetComponent <Renderer> ().material; upgradeCost = 100; masterAttackThreshold = attackThreshold; masterAttackPoint = attackPoint; if (SaveData.Instance.gatlingLv3) { masteryLevel = MasteryLevel.Lv3; this.gameObject.tag = "GatlingLv3"; } else if (SaveData.Instance.gatlingLv2) { masteryLevel = MasteryLevel.Lv2; } else if (SaveData.Instance.gatlingLv1) { masteryLevel = MasteryLevel.Lv1; } else { masteryLevel = MasteryLevel.Lv0; } }
// Use this for initialization void Start() { base.Start(); masterAttackPoint = attackPoint; masterAttackThreshold = attackThreshold; if (SaveData.Instance.gatlingLv3) { masteryLevel = MasteryLevel.Lv3; this.gameObject.tag = "GatlingLv3"; } else if (SaveData.Instance.gatlingLv2) { masteryLevel = MasteryLevel.Lv2; } else if (SaveData.Instance.gatlingLv1) { masteryLevel = MasteryLevel.Lv1; } else { masteryLevel = MasteryLevel.Lv0; } }
public static void Costs_experience(MasteryLevel actual) => Assert.InRange(actual.ExperienceCost, 1, int.MaxValue);
public static void Costs_points(MasteryLevel actual) => Assert.InRange(actual.PointCost, 1, int.MaxValue);
public static void Icon_is_not_empty(MasteryLevel actual) => Assert.NotEmpty(actual.Icon);
public static void Description_is_not_empty(MasteryLevel actual) => Assert.NotEmpty(actual.Description);
public static void Name_is_not_empty(MasteryLevel actual) => Assert.NotEmpty(actual.Name);