コード例 #1
0
    public void RunStats()
    {
        myStats.SetBaseParams();
        myGrip.RunStatMods(myGrip.currentGrip, myStats);
        myBarrel.RunStatMods(myBarrel.currentBarrel, myStats);
        myAmmo.RunStatMods(myAmmo.currentAmmo, myStats);
        Debug.Log("Element = " + myStats.myElementA);
        ElementArray();
        SetRanges();
        Weapon wep = GetComponent <Weapon>();

        wep.GetGunStats(myStats, bSpeed, dRange);
        //myStats.SetStats(myGrip.currentGrip,myAmmo.currentAmmo, myBarrel.currentBarrel);
        //Debug.Log(myStats.damage + "-Damage,  " + myStats.accuracy + "-Accuracy,  " + myStats.recoil + " -Recoil,  " + myStats.durability + " -Durability,  " + myStats.fireRate + " -FireRate");
        //Debug.Log(myElements[0]+ myElements[1] +myElements[2]);
    }