public T GetComponent <T>(string path) where T : ComponentBase { GameObject prefab = this.GetPrefab(path); return(TransUtils.InstantiateTransform(prefab.transform, this.m_Transform, LayerMask.LayerToName(prefab.layer)).GetComponent <T>()); }
public T GetComponent <T>(string path) where T : ComponentBase { GameObject prefab = this.GetPrefab(path); return(TransUtils.InstantiateTransform(prefab.transform, this.m_Transform, LayerMask.LayerToName(prefab.layer)).GetComponent <T>()); }