示例#1
0
    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);
    }
示例#2
0
 void Start()
 {
     m_mineProj = projectilePrefab.GetComponent<MineProjectileScript>();
     Init();
 }
示例#3
0
 void Start()
 {
     m_mine = transform.parent.GetComponent <MineProjectileScript>();
 }
示例#4
0
 void Start()
 {
     m_mineProj = projectilePrefab.GetComponent <MineProjectileScript>();
     Init();
 }
示例#5
0
 void Start()
 {
     m_mine = transform.parent.GetComponent<MineProjectileScript>();
 }