添加湖南衡阳珠晖东洲岛室内场景
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user