|
@@ -60,7 +60,7 @@ namespace Comp
|
|
|
private IEnumerator CockRayCast()
|
|
|
{
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
- for (float i = _miniY-2f; i <= 2f; i += 0.05f) // 多次碰撞寻找自己的cock
|
|
|
+ for (float i = _miniY - 2f; i <= 2f; i += 0.05f) // 多次碰撞寻找自己的cock
|
|
|
{
|
|
|
var position = transform.position;
|
|
|
position.y = _miniY; // 创建射线基础位置,y为脚底
|
|
@@ -145,7 +145,19 @@ namespace Comp
|
|
|
{
|
|
|
_liftPos = _cock.transform.position;
|
|
|
_cock.transform.parent = transform;
|
|
|
- _cock.transform.localPosition = new Vector3(0, 0.9f, 0.4f);
|
|
|
+ var comp = _cock.GetComponent<CockActionComp>();
|
|
|
+ switch (comp.cockId)
|
|
|
+ {
|
|
|
+ case 1:
|
|
|
+ _cock.transform.localPosition = new Vector3(0, 0.9f, 0.3f);
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ _cock.transform.localPosition = new Vector3(0, 0.9f, 0.4f);
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ _cock.transform.localPosition = new Vector3(0, 0.9f, 0.3f);
|
|
|
+ break;
|
|
|
+ }
|
|
|
StartCoroutine(PutDown());
|
|
|
}
|
|
|
else
|