Beispiel #1
0
        public T AddManager <T>() where T : MonoBehaviour
        {
            T manager = CompAgent.AddChild <T>(transform);

            m_ManagerDict.Add(typeof(T), manager);
            return(manager);
        }
		public static LuaTable AddLuaChild(Component comp, string name, string luaPath, params object[] args)
		{
			GameObject go = CompAgent.AddChild(comp, name);
			return AddLuaComponent(go, luaPath, args);
		}
 private T AddChild <T>() where T : MonoBehaviour
 {
     return(CompAgent.AddChild <T>(this));
 }