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