| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 | 
							- using System;
 
- using Fort23.Mono;
 
- using GameLogic.Combat.Hero;
 
- using UnityEngine;
 
- using Utility;
 
- namespace GameLogic.Combat.CombatTool
 
- {
 
-     public class CombatGestureController : Singleton<CombatGestureController>
 
-     {
 
-         private HeroEntityMono heroEntityMono;
 
-         private RaycastHit[] hit = new RaycastHit[10];
 
-         public void Dispose()
 
-         {
 
-         }
 
-         public void Update()
 
-         {
 
-             return;
 
-             // if (Input.GetMouseButtonDown(0))
 
-             // {
 
-             //     Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
 
-             //     // LayerMask layerMask = LayerMask.NameToLayer("hero");
 
-             //     if (Physics.Raycast(ray.origin, ray.direction, out RaycastHit hit))
 
-             //     {
 
-             //         HeroEntityMono  mono = hit.transform.gameObject.GetComponent<HeroEntityMono>();
 
-             //         if (mono != null && !mono.combatHeroEntity.IsEnemy)
 
-             //         {
 
-             //             heroEntityMono= mono;
 
-             //             heroEntityMono.combatHeroEntity.CombatAIBasic.ChangeState(CombatHeroStateType.PickUp);
 
-             //             CombatHeroEntity[] combatHeroEntities = CombatController.currActiveCombat.CombatHeroController.GetHero(false);
 
-             //             if (CombatController.currActiveCombat.CombatCameraControllder.FollowHeroId== heroEntityMono.combatHeroEntity.CurrCombatHeroInfo.modelID||combatHeroEntities!=null&&combatHeroEntities.Length == 1)
 
-             //             {
 
-             //                 CombatController.currActiveCombat.CombatCameraControllder.isStop = true;
 
-             //             }
 
-             //         }
 
-             //     }
 
-             // }
 
-             //
 
-             // if (Input.GetMouseButton(0))
 
-             // {
 
-             //     if (heroEntityMono != null && heroEntityMono.combatHeroEntity != null)
 
-             //     {
 
-             //         // Vector2 pos = Input.mousePosition;
 
-             //         Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
 
-             //         int layerMask = LayerMask.NameToLayer("hongpei");
 
-             //         int count = Physics.RaycastNonAlloc(ray.origin, ray.direction, hit);
 
-             //         if (count > 0)
 
-             //         {
 
-             //             for (int i = 0; i < count; i++)
 
-             //             {
 
-             //                 if (hit[i].transform.gameObject.layer == layerMask)
 
-             //                 {
 
-             //                     heroEntityMono.gameObject.transform.position =
 
-             //                         hit[i].point;
 
-             //                 }
 
-             //             }
 
-             //         }
 
-             //     }
 
-             // }
 
-             //
 
-             // if (Input.GetMouseButtonUp(0))
 
-             // {
 
-             //     if (heroEntityMono != null)
 
-             //     {
 
-             //         heroEntityMono.combatHeroEntity.CombatAIBasic.ChangeState(CombatHeroStateType.idle);
 
-             //     }
 
-             //
 
-             //     heroEntityMono = null;
 
-             //     CombatController.currActiveCombat.CombatCameraControllder.isStop = false;
 
-             // }
 
-         }
 
-     }
 
- }
 
 
  |