コード例 #1
0
        public void SpawnWeapon(Vector3 pos, BlueprintWeapon currentWeapon)
        {
            var w = weapons
                    .Except(weapons.Select(item => currentWeapon).Distinct()).ToList();


            var weapon = this.Populate(Pool.None, w.ReturnRandom().prefab, pos);

            weapon.transform.position = new Vector3(pos.x, pos.y, 0);
        }
コード例 #2
0
 public void Dispose()
 {
     weapon = null;
 }