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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -56,8 +56,7 @@ public class PlayJiaGuAnimator : MonoBehaviour
|
||||
{
|
||||
for (int i = 0; i < childAnimator.Count; i++)
|
||||
{
|
||||
Destroy(childAnimator[i]);
|
||||
childAnimator[i] = null;
|
||||
childAnimator[i].transform.localScale = Vector3.zero;
|
||||
}
|
||||
}
|
||||
private void OnTriggerEnter(Collider other)
|
||||
|
||||
@@ -62,13 +62,13 @@ public class SingleTouchPlayAnimator : MonoBehaviour
|
||||
SetTriggerParameter("DisTrigger");
|
||||
if (Vfx != null)
|
||||
{
|
||||
Destroy(Vfx);
|
||||
Vfx = null;
|
||||
|
||||
|
||||
Vfx.transform.localScale = Vector3.zero;
|
||||
}
|
||||
if (Vfx1 != null)
|
||||
{
|
||||
Destroy(Vfx1);
|
||||
Vfx1 = null;
|
||||
Vfx1.transform.localScale = Vector3.zero;
|
||||
}
|
||||
animator.Play("Touch");
|
||||
animatorpig.Play("Touch");
|
||||
|
||||
@@ -74,14 +74,13 @@ public class TouchPlayAnimatior : MonoBehaviour
|
||||
}
|
||||
}
|
||||
[Header("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")]
|
||||
[SerializeField] private Object childAnimator; // ֱ<><D6B1><EFBFBD>϶<EFBFBD><CFB6><EFBFBD>
|
||||
[SerializeField] private GameObject childAnimator; // ֱ<><D6B1><EFBFBD>϶<EFBFBD><CFB6><EFBFBD>
|
||||
|
||||
public void SetTriggerParameter(string parameterName)
|
||||
{
|
||||
if (childAnimator != null)
|
||||
{
|
||||
Destroy(childAnimator);
|
||||
childAnimator = null;
|
||||
childAnimator.transform.localScale = Vector3.zero;
|
||||
}
|
||||
}
|
||||
void ShowFont()
|
||||
|
||||
Reference in New Issue
Block a user