Exemple #1
0
 private void Awake()
 {
     M_Script = FindObjectOfType <MenuScript>();
     if (M_Script)
     {
         M_Script.AddMenu(MenuName, this);
     }
     else
     {
         Debug.LogError("Menu Controller Not Found.");
     }
 }