// Use this for initialization
    void Awake()
    {
        if (instance == null)
            instance = this;
        else if (instance != this)
            Destroy(gameObject);

        DontDestroyOnLoad(gameObject);

        distanceEntendu =SOUND_BROADCASTING_RUN ;
        totalNoiseHear = 0;
        playerRigidBody = GetComponent<Rigidbody>();
    }
Exemple #2
0
 void Start()
 {
     soundGaugeManager = SoundGaugeManager.getInstance();
 }