Exemplo n.º 1
0
    public void OnBulletDestroy()
    {
        SoundController.Instance.PlayOneShootAudio("event:/Nerf/Colision", m_BulletTransform);
        // Destroy bullet GameObject
        m_BulletTransform.position = m_StartPosition;
        m_Active = false;
        //Create Decal
        Decal l_Decal = GameController.Instance.GetDecalNerfInactive();

        l_Decal.Initialize(m_DecalPosition, m_DecalNormal);
    }