Esempio n. 1
0
        // 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;
            }
        }
Esempio n. 2
0
 // 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;
     }
 }
Esempio n. 3
0
 public static void Costs_experience(MasteryLevel actual) =>
 Assert.InRange(actual.ExperienceCost, 1, int.MaxValue);
Esempio n. 4
0
 public static void Costs_points(MasteryLevel actual) =>
 Assert.InRange(actual.PointCost, 1, int.MaxValue);
Esempio n. 5
0
 public static void Icon_is_not_empty(MasteryLevel actual) => Assert.NotEmpty(actual.Icon);
Esempio n. 6
0
 public static void Description_is_not_empty(MasteryLevel actual) =>
 Assert.NotEmpty(actual.Description);
Esempio n. 7
0
 public static void Name_is_not_empty(MasteryLevel actual) => Assert.NotEmpty(actual.Name);