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

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