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); }
public void Dispose() { weapon = null; }