添加湖南衡阳珠晖东洲岛室内场景
This commit is contained in:
@@ -37,12 +37,27 @@ public class PuzzleItem : MonoBehaviour
|
||||
// }
|
||||
if(GameManager.Ins.taskManager.tasks[3].isEnd)
|
||||
return;
|
||||
if (isSelect)
|
||||
if (GameLocal.Ins.place == Place.Hunan_Hengyang_Zhuhui_Dongzhoudao_nei)//»»½Ç¶È
|
||||
{
|
||||
var rayLine = GameManager.Ins.playerRightHand.ray.GetComponent<LineRenderer>();
|
||||
var followZ=transform.position.z;
|
||||
transform.position=new Vector3(rayLine.GetPosition(1).x,rayLine.GetPosition(1).y,followZ);
|
||||
if (isSelect)
|
||||
{
|
||||
|
||||
var rayLine = GameManager.Ins.playerRightHand.ray.GetComponent<LineRenderer>();
|
||||
var followZ = transform.position.x;
|
||||
transform.position = new Vector3(followZ, rayLine.GetPosition(1).y, rayLine.GetPosition(1).z);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (isSelect)
|
||||
{
|
||||
|
||||
var rayLine = GameManager.Ins.playerRightHand.ray.GetComponent<LineRenderer>();
|
||||
var followZ = transform.position.z;
|
||||
transform.position = new Vector3(rayLine.GetPosition(1).x, rayLine.GetPosition(1).y, followZ);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void StartFly()
|
||||
|
||||
@@ -196,7 +196,8 @@ public class TaskBox : MonoBehaviour
|
||||
spawnRange = new Vector3(2f, 1f, 2f);
|
||||
}
|
||||
if(GameLocal.Ins.place == Place.Henan_Xinxiang_Wandaguangchang
|
||||
|| GameLocal.Ins.place == Place.Hebei_Tangshan_Qianan_Tianyuangu)
|
||||
|| GameLocal.Ins.place == Place.Hebei_Tangshan_Qianan_Tianyuangu
|
||||
|| GameLocal.Ins.place == Place.Hunan_Hengyang_Zhuhui_Dongzhoudao_nei)
|
||||
{
|
||||
spawnRange = new Vector3(1f, 1f, 1f);
|
||||
}
|
||||
|
||||
@@ -58,26 +58,29 @@ public class PuzzleTask : Task
|
||||
|
||||
public override void Update()
|
||||
{
|
||||
base.Update();
|
||||
if(GameManager.Ins==null|| !GameManager.Ins.playerRightHand)
|
||||
return;
|
||||
if(isEnd)
|
||||
return;
|
||||
foreach (var item in puzzleItems)
|
||||
{
|
||||
if (item && GameManager.Ins.playerRightHand.hit)
|
||||
|
||||
base.Update();
|
||||
if (GameManager.Ins == null || !GameManager.Ins.playerRightHand)
|
||||
return;
|
||||
if (isEnd)
|
||||
return;
|
||||
foreach (var item in puzzleItems)
|
||||
{
|
||||
var x=GameManager.Ins.playerRightHand.hit.transform.GetComponent<PuzzleItem>();
|
||||
if(x==null)
|
||||
continue;
|
||||
if ((x.id == item.id))
|
||||
if (item && GameManager.Ins.playerRightHand.hit)
|
||||
{
|
||||
item.ShowOutline();
|
||||
break;
|
||||
var x = GameManager.Ins.playerRightHand.hit.transform.GetComponent<PuzzleItem>();
|
||||
if (x == null)
|
||||
continue;
|
||||
if ((x.id == item.id))
|
||||
{
|
||||
item.ShowOutline();
|
||||
break;
|
||||
}
|
||||
}
|
||||
item.GetComponent<PuzzleItem>().HideOutline();
|
||||
}
|
||||
item.GetComponent<PuzzleItem>().HideOutline();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void EndTask()
|
||||
|
||||
@@ -72,10 +72,10 @@ namespace Common
|
||||
public void Author()
|
||||
{
|
||||
|
||||
//延迟请求
|
||||
////延迟请求
|
||||
MonoSingleton<CoroutineTaskManager>.Instance.WaitSecondTodo(() =>
|
||||
{
|
||||
// 鉴权
|
||||
// //鉴权
|
||||
GameLocal.Ins.RequestAuth((req, response) =>
|
||||
{
|
||||
RequestAuthCount++;
|
||||
@@ -122,7 +122,7 @@ namespace Common
|
||||
_isAuth = false;
|
||||
//Debug.Log("鉴权成功");
|
||||
//_isAuth = true;
|
||||
//GameManager.Ins.UpdateConf();//修改为本地游戏
|
||||
//GameManager.Ins.UpdateConf();//修改为本地游戏
|
||||
float curWaitTime = 0;
|
||||
while (_progress<=90)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user