12345678910111213141516171819202122232425262728293031323334353637 |
- using CommonLang;
- using UnityEngine;
- namespace ET.Client
- {
- [ComponentOf(typeof(Scene))]
- public class ModelViewComponent : Entity, IAwake, IDestroy
- {
- [StaticField]
- public static ModelViewComponent Instance;
- //当人数多起来后,是否隐藏了普通用户的名字
- public bool IsHideNormalName = false;
- }
- [FriendOf(typeof(ModelViewComponent))]
- public static class ModelViewComponentSystem
- {
- [ObjectSystem]
- public class ModelViewComponentAwakeSystem : AwakeSystem<ModelViewComponent>
- {
- protected override void Awake(ModelViewComponent self)
- {
- ModelViewComponent.Instance = self;
- }
- }
- [ObjectSystem]
- public class ModelViewComponentDestroySystem : DestroySystem<ModelViewComponent>
- {
- protected override void Destroy(ModelViewComponent self)
- {
- ModelViewComponent.Instance = null;
- }
- }
- }
- }
|