|
|
@@ -36,6 +36,7 @@ public class EyeLaser : MonoBehaviour
|
|
|
|
|
|
[Header("´óС")]
|
|
|
private List<int> shaderIDs = new List<int>();
|
|
|
+ private float bossScale;
|
|
|
|
|
|
[Header("¾¯Ê¾")]
|
|
|
public GameObject tip;
|
|
|
@@ -109,6 +110,7 @@ public class EyeLaser : MonoBehaviour
|
|
|
|
|
|
private void ChangeCol()
|
|
|
{
|
|
|
+ bossScale = ymg.gameObject.transform.localScale.x;
|
|
|
col.gameObject.SetActive(true);
|
|
|
col1.gameObject.SetActive(true);
|
|
|
col2.gameObject.SetActive(true);
|
|
|
@@ -121,9 +123,9 @@ public class EyeLaser : MonoBehaviour
|
|
|
ls.x = Vector2.Distance(headPos.position, TranEnd(0));
|
|
|
ls1.x = Vector2.Distance(headPos.position, TranEnd(1));
|
|
|
ls2.x = Vector2.Distance(headPos.position, TranEnd(2));
|
|
|
- col.localScale = ls;
|
|
|
- col1.localScale = ls1;
|
|
|
- col2.localScale = ls2;
|
|
|
+ col.localScale = ls / bossScale;
|
|
|
+ col1.localScale = ls1 / bossScale;
|
|
|
+ col2.localScale = ls2 / bossScale;
|
|
|
Vector3 left = headPos.position - TranEnd(0);
|
|
|
Vector3 left1 = headPos.position - TranEnd(1);
|
|
|
Vector3 left2 = headPos.position - TranEnd(2);
|