public void CreateBones(string boneName) { mBody = FEngineManager.Create(boneName, this.gameObject); mBones = mBody.GetComponentsInChildren <Transform>(true); FEngineManager.AddComponent <SkinnedMeshRenderer>(mBody); mBodyAnimator = FEngineManager.AddComponent <FCAnimator>(mBody); Init(); }
public T AddComponent <T>(GameObject go) where T : Component { return(FEngineManager.AddComponent <T>(go)); }