protected override void HandleAttackStartTrigger() { base.HandleAttackStartTrigger(); if (attackTarget != null) { foreach (Transform spawnPoint in projectileSpawnPoints) { WeaponBeam beam = Instantiate <GameObject>(projectilePrefab.gameObject, spawnPoint).GetComponent <WeaponBeam>(); beam.transform.localPosition = Vector3.zero; if (beam != null) { beam.start = transform; beam.target = attackTarget != null ? attackTarget.transform : null; beam.totalEffectTime = weaponData.damageIncreaseTime; } } } }
public Fire(WeaponBeam wB) { m_hWB = wB; }
public StartRecharging(WeaponBeam wB) { m_hWB = wB; }
public WeaponOn(WeaponBeam wB) { m_hWB = wB; }