示例#1
0
 /// <summary>
 /// Used to initialize the InputMgr singleton instance
 /// </summary>
 ///<returns>True if everything went ok</returns>
 public static bool Init()
 {
     if (m_instance != null)
     {
         Debug.LogError("Second initialisation not allowed");
         return false;
     }
     else
     {
         m_instance = new InputMgr();
         return m_instance.open();
     }
 }