private void FireMine() { MineProjectileScript projectile = (MineProjectileScript)Instantiate(m_mineProj, transform.position, Quaternion.identity); projectile.Init(damage, projectileSpeed, mineLifeTime, transform.parent.gameObject); projectile.FireProj(transform.eulerAngles.z); m_soundSystem.PlayOneShot(fireSoundName); }
void Start() { m_mineProj = projectilePrefab.GetComponent<MineProjectileScript>(); Init(); }
void Start() { m_mine = transform.parent.GetComponent <MineProjectileScript>(); }
void Start() { m_mineProj = projectilePrefab.GetComponent <MineProjectileScript>(); Init(); }
void Start() { m_mine = transform.parent.GetComponent<MineProjectileScript>(); }