Example #1
0
 // initialisation du manager
 void Awake()
 {
     if (p_instance == null)
     {
         p_instance = this;
     }
     else if (p_instance != this)
     {
         Destroy(gameObject);
     }
     foreach (var son in sons)
     {
         p_sons.Add(son.nom, son.son);
     }
 }
Example #2
0
    // initialisation du manager
    void Awake()
    {
        if (p_instance == null)
        {
            p_instance = this;
        }
        else if (p_instance != this)
        {
            Destroy(gameObject);
        }

        // Initialisation du Dictionaire
        foreach (Son son in sons)
        {
            p_sons.Add(son.nom, son.son);
        }

        IsBackgroundSound = (p_sons.ContainsKey("backgroundSound")) ? true : false;
    }