Example #1
0
 public void SetStats(Grip.gripModel grip, Ammo.ammoModel ammo, Barrel.barrelModel barrel)
 {
     SetBaseParams();
 }
Example #2
0
    void  WhichPartIsThis()
    {
        if (name.Contains("Grip"))
        {
            myType = "grip";
            if (name.Contains("One"))
            {
                grip  = Grip.gripModel.pistol;
                myPos = 0;
            }
            else if (name.Contains("Two"))
            {
                grip  = Grip.gripModel.subMG;
                myPos = 1;
            }
            else if (name.Contains("Three"))
            {
                grip  = Grip.gripModel.assaultR;
                myPos = 2;
            }
            else if (name.Contains("Four"))
            {
                grip  = Grip.gripModel.shotG;
                myPos = 3;
            }
        }
        else if (name.Contains("Barrel"))
        {
            myType = "barrel";

            if (name.Contains("One"))
            {
                barrel = Barrel.barrelModel.one;
                myPos  = 0;
            }
            else if (name.Contains("Two"))
            {
                barrel = Barrel.barrelModel.two;
                myPos  = 1;
            }
            else if (name.Contains("Three"))
            {
                barrel = Barrel.barrelModel.three;
                myPos  = 2;
            }
            else if (name.Contains("Four"))
            {
                barrel = Barrel.barrelModel.four;
                myPos  = 3;
            }
            else if (name.Contains("Five"))
            {
                barrel = Barrel.barrelModel.five;
                myPos  = 4;
            }
            else if (name.Contains("Six"))
            {
                barrel = Barrel.barrelModel.six;
                myPos  = 5;
            }
            else if (name.Contains("Seven"))
            {
                barrel = Barrel.barrelModel.seven;
                myPos  = 6;
            }
        }
        else if (name.Contains("Ammo"))
        {
            myType = "ammo";

            if (name.Contains("One"))
            {
                ammo  = Ammo.ammoModel.one;
                myPos = 0;
            }
            else if (name.Contains("Two"))
            {
                ammo  = Ammo.ammoModel.two;
                myPos = 1;
            }
            else if (name.Contains("Three"))
            {
                ammo  = Ammo.ammoModel.three;
                myPos = 2;
            }
            else if (name.Contains("Four"))
            {
                ammo  = Ammo.ammoModel.four;
                myPos = 3;
            }
            else if (name.Contains("Five"))
            {
                ammo  = Ammo.ammoModel.five;
                myPos = 4;
            }
            else if (name.Contains("Six"))
            {
                ammo  = Ammo.ammoModel.six;
                myPos = 5;
            }
            else if (name.Contains("Seven"))
            {
                ammo  = Ammo.ammoModel.seven;
                myPos = 6;
            }
            else if (name.Contains("Eight"))
            {
                ammo  = Ammo.ammoModel.eight;
                myPos = 7;
            }
            else if (name.Contains("Nine"))
            {
                ammo  = Ammo.ammoModel.nine;
                myPos = 8;
            }
            else if (name.Contains("Ten"))
            {
                ammo  = Ammo.ammoModel.ten;
                myPos = 9;
            }
            else if (name.Contains("Eleven"))
            {
                ammo  = Ammo.ammoModel.eleven;
                myPos = 10;
            }
        }
        else
        {
            Debug.Log("Name Contains Error");
        }
    }