|
@@ -24,7 +24,6 @@ namespace GFGGame
|
|
private GameObject _gameObject;
|
|
private GameObject _gameObject;
|
|
private GoWrapper _wrapper;
|
|
private GoWrapper _wrapper;
|
|
|
|
|
|
- private int sortingOrder;
|
|
|
|
public override void Dispose()
|
|
public override void Dispose()
|
|
{
|
|
{
|
|
base.Dispose();
|
|
base.Dispose();
|
|
@@ -37,7 +36,6 @@ namespace GFGGame
|
|
packageName = UI_GuideUI.PACKAGE_NAME;
|
|
packageName = UI_GuideUI.PACKAGE_NAME;
|
|
_ui = UI_GuideUI.Create();
|
|
_ui = UI_GuideUI.Create();
|
|
this.viewCom = _ui.target;
|
|
this.viewCom = _ui.target;
|
|
- // this.clickBlankToClose = false;
|
|
|
|
this.layer = ConstViewLayer.TOP;
|
|
this.layer = ConstViewLayer.TOP;
|
|
isfullScreen = true;
|
|
isfullScreen = true;
|
|
_ui.m_rectFrameTemp.visible = false;
|
|
_ui.m_rectFrameTemp.visible = false;
|
|
@@ -110,7 +108,6 @@ namespace GFGGame
|
|
|
|
|
|
}
|
|
}
|
|
_ui.m_compTxt.target.y = Math.Min(yTxt, GRoot.inst.height - _ui.m_compTxt.target.height - 3);
|
|
_ui.m_compTxt.target.y = Math.Min(yTxt, GRoot.inst.height - _ui.m_compTxt.target.height - 3);
|
|
- // _ui.m_rectFrame.target.visible = true;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
protected override void OnHide()
|
|
protected override void OnHide()
|
|
@@ -136,9 +133,7 @@ namespace GFGGame
|
|
_ui.m_mask.m_guideArea.size = new Vector2((int)rect.size.x, (int)rect.size.y);
|
|
_ui.m_mask.m_guideArea.size = new Vector2((int)rect.size.x, (int)rect.size.y);
|
|
_ui.m_mask.m_guideArea.position = new Vector2((int)rect.position.x, (int)rect.position.y);
|
|
_ui.m_mask.m_guideArea.position = new Vector2((int)rect.position.x, (int)rect.position.y);
|
|
|
|
|
|
- Debug.Log("zoya000:" + _ui.m_mask.m_guideArea.position);
|
|
|
|
_ui.m_comHolder.target.position = _ui.m_mask.m_guideArea.position;
|
|
_ui.m_comHolder.target.position = _ui.m_mask.m_guideArea.position;
|
|
- Debug.Log("zoya111:" + _ui.m_comHolder.target.position);
|
|
|
|
_ui.m_comHolder.target.size = _ui.m_mask.m_guideArea.size;
|
|
_ui.m_comHolder.target.size = _ui.m_mask.m_guideArea.size;
|
|
int padding = 90;
|
|
int padding = 90;
|
|
bool atBottom = _ui.m_mask.m_guideArea.y + _ui.m_mask.m_guideArea.height + padding + _ui.m_compTxt.target.height + padding > GRoot.inst.height;
|
|
bool atBottom = _ui.m_mask.m_guideArea.y + _ui.m_mask.m_guideArea.height + padding + _ui.m_compTxt.target.height + padding > GRoot.inst.height;
|
|
@@ -152,8 +147,6 @@ namespace GFGGame
|
|
{
|
|
{
|
|
_ui.m_compTxt.target.y = _ui.m_mask.m_guideArea.y + _ui.m_mask.m_guideArea.height + padding;
|
|
_ui.m_compTxt.target.y = _ui.m_mask.m_guideArea.y + _ui.m_mask.m_guideArea.height + padding;
|
|
}
|
|
}
|
|
- Debug.Log("zoya222:" + _ui.m_compTxt.target.y);
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
int targetWidth = 20;
|
|
int targetWidth = 20;
|
|
|
|
|
|
@@ -176,10 +169,6 @@ namespace GFGGame
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- // if (Mathf.Abs(_ui.m_rectFrameTemp.width - _ui.m_rectFrame.target.width) <= targetWidth && Mathf.Abs(_ui.m_rectFrameTemp.height - _ui.m_rectFrame.target.height) <= targetWidth)
|
|
|
|
- // {
|
|
|
|
- // Timers.inst.Remove(UpdateGuideRect);
|
|
|
|
- // }
|
|
|
|
_ui.m_comHolder.target.visible = true;
|
|
_ui.m_comHolder.target.visible = true;
|
|
guideTarget.touchable = true;
|
|
guideTarget.touchable = true;
|
|
|
|
|
|
@@ -188,8 +177,6 @@ namespace GFGGame
|
|
}
|
|
}
|
|
private void OnClickTarget()
|
|
private void OnClickTarget()
|
|
{
|
|
{
|
|
- // if (guideTarget == null) return;
|
|
|
|
- // if (!ViewManager.CheckIsTopView(this.viewCom)) return;
|
|
|
|
if (guideTarget != null) guideTarget.onClick.Remove(OnClickTarget);
|
|
if (guideTarget != null) guideTarget.onClick.Remove(OnClickTarget);
|
|
GuideController.TryCompleteGuideIndex(guideId, guideIndex);
|
|
GuideController.TryCompleteGuideIndex(guideId, guideIndex);
|
|
}
|
|
}
|