示例#1
0
 /// <summary>
 /// See Monobehaviour.Awake.
 /// </summary>
 void Awake()
 {
     if (!m_Instance)
     {
         m_Instance = this;
         m_Instance.InitDialogSystem();
     }
     else
     {
         Destroy(gameObject);
     }
 }
示例#2
0
 /// <summary>
 /// See Monobehaviour.Awake.
 /// </summary>
 void Awake()
 {
     if (!m_Instance)
     {
         m_Instance = this;
         m_Instance.InitDialogSystem();
     }
     else
     {
         Debug.LogWarning("More than one DialogManager exist in the scene, destroying one.");
         Destroy(gameObject);
     }
 }