Exemple #1
0
 /// <summary>
 /// 将组件订阅到游戏外观中
 /// </summary>
 /// <param name="component"></param>
 /// <param name="gameFacade"></param>
 public static void Subscribe(this IComponent component, GameFacade gameFacade)
 {
     Debug.Log(component is null);
     Debug.Log(gameFacade is null);
     gameFacade.AddComponent(component);
 }