1234567891011121314151617181920212223242526272829303132333435 |
- using ET.EventType;
- using UnityEngine;
- namespace ET.Client
- {
- [Event]
- public class OnDestroyZoneObjectHandler : BEvent<EventType.OnDestroyZoneObject>
- {
- protected override async ETTask OnEvent( EventType.OnDestroyZoneObject args)
- {
-
- DestroyUnitModel(args.ObjectId);
- await ETTask.CompletedTask;
- }
- private void DestroyUnitModel(uint unitid)
- {
- if(ModelViewComponent.Instance != null)
- {
- ModelViewComponent.Instance.RemoveChild(unitid);
- }
- if (unitid == UnitMgr.Instance.ActorId)
- {
-
-
-
- var camera = Camera.main;
-
- }
-
- }
- }
- }
|