Esempio n. 1
0
        public RegularShot(Weaponry weaponry, GameCollider[] prefab)
        {
            this.weaponry = weaponry;
            shots         = prefab;
            int max = 0;

            for (int coef = (int)Mathf.Log(weaponry.MinMultiplier, 2); coef < 1; ++coef, ++max)
            {
                weaponry.ShotPrefabsByDamage[Mathf.Pow(2, coef)] = shots[max];
            }

            for (int coef = 1; Mathf.Pow(2, coef) <= weaponry.MaxMultiplier; ++coef, ++max)
            {
                weaponry.ShotPrefabsByDamage[Mathf.Pow(2, coef)] = shots[max];
            }
        }
Esempio n. 2
0
 public NoChangeWrapper(Weaponry weaponry)
 {
     this.weaponry = weaponry;
 }