public static GameObject SetupWeaponToBePickableInWorld(GameObject objectToSpawnAt, WeaponItem weaponData) { GameObject geo = Object.Instantiate(weaponData.weaponPrefab, objectToSpawnAt.transform); return(geo); }
public virtual void Init(float targetSpeed, LayerMask targetMask, int damageToDeal, WeaponItem weapon) { layerMask = targetMask; speed = targetSpeed; damage = damageToDeal; weaponItem = weapon as WeaponItemRanged; originalFiredPosition = transform.position; }
public override void Init(float targetSpeed, LayerMask targetMask, int damageToDeal, WeaponItem weapon) { base.Init(targetSpeed, targetMask, damageToDeal, weapon); }