1
This commit is contained in:
@@ -10,7 +10,6 @@ public class RayCtr : MonoBehaviour
|
||||
public bool starRay = false; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>
|
||||
public LayerMask detectionLayer ; //<2F><><EFBFBD><EFBFBD><EFBFBD>IJ㼶
|
||||
public int myhandType; //<2F>Լ<EFBFBD><D4BC>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD><EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD> 2<><32><EFBFBD><EFBFBD>
|
||||
public bool isstarRay = false;
|
||||
|
||||
|
||||
//<2F><>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>
|
||||
@@ -29,8 +28,6 @@ public class RayCtr : MonoBehaviour
|
||||
void Start()
|
||||
{
|
||||
GlobalEventMgr.Listen<int>(GameEvent.EventRayStart, GameDataManage_EventRayStart);
|
||||
GlobalEventMgr.Listen<int>(GameEvent.EventRayEnd, GameDataManage_EventRayEnd);
|
||||
GlobalEventMgr.Listen<int>(GameEvent.EventRayEnd, GameDataManage_EventRayEnd2);
|
||||
//// <20><><EFBFBD><EFBFBD>LineRenderer<65><72><EFBFBD><EFBFBD>
|
||||
//lineRenderer = gameObject.AddComponent<LineRenderer>();
|
||||
|
||||
@@ -69,7 +66,6 @@ public class RayCtr : MonoBehaviour
|
||||
void Update()
|
||||
{
|
||||
//UpdateVisualRay(); //<2F><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
|
||||
if (!isstarRay) { return; }
|
||||
// <20>ڳ<EFBFBD><DAB3><EFBFBD><EFBFBD><EFBFBD>ͼ<EFBFBD>л<EFBFBD><D0BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ߣ<EFBFBD><DFA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5>ԣ<EFBFBD>
|
||||
if (!SceneMgr.Instance.isTrigger)
|
||||
{
|
||||
@@ -122,12 +118,5 @@ public class RayCtr : MonoBehaviour
|
||||
runTime = 0;
|
||||
}
|
||||
}
|
||||
void GameDataManage_EventRayEnd(int type)
|
||||
{
|
||||
isstarRay = true;
|
||||
}
|
||||
void GameDataManage_EventRayEnd2(int type)
|
||||
{
|
||||
isstarRay = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user