|
@@ -235,6 +235,7 @@ namespace GFGGame
|
|
|
|
|
|
public void SetDragRect()
|
|
public void SetDragRect()
|
|
{
|
|
{
|
|
|
|
+ _ui.m_catcher.target.visible = true;
|
|
_ui.m_catcher.target.draggable = true;
|
|
_ui.m_catcher.target.draggable = true;
|
|
_ui.m_catcher.target.dragBounds = new Rect(-_ui.m_catcher.target.width / 2, _ui.m_catcher.target.y, Screen.width + _ui.m_catcher.target.width, 0);
|
|
_ui.m_catcher.target.dragBounds = new Rect(-_ui.m_catcher.target.width / 2, _ui.m_catcher.target.y, Screen.width + _ui.m_catcher.target.width, 0);
|
|
}
|
|
}
|
|
@@ -242,6 +243,7 @@ namespace GFGGame
|
|
private void StartGame()
|
|
private void StartGame()
|
|
{
|
|
{
|
|
CreateItems(null);
|
|
CreateItems(null);
|
|
|
|
+ UpdateTime(null);
|
|
Timers.inst.Add(1, 0, UpdateTime);
|
|
Timers.inst.Add(1, 0, UpdateTime);
|
|
Timers.inst.AddUpdate(UpdateGame);
|
|
Timers.inst.AddUpdate(UpdateGame);
|
|
}
|
|
}
|
|
@@ -265,6 +267,7 @@ namespace GFGGame
|
|
|
|
|
|
_ui.m_time.text = TimeUtil.FormattingTimeTo_mmss(_countTime * 1000);
|
|
_ui.m_time.text = TimeUtil.FormattingTimeTo_mmss(_countTime * 1000);
|
|
--_countTime;
|
|
--_countTime;
|
|
|
|
+
|
|
if (_countTime < 0)
|
|
if (_countTime < 0)
|
|
{
|
|
{
|
|
Timers.inst.Remove(UpdateTime);
|
|
Timers.inst.Remove(UpdateTime);
|
|
@@ -274,7 +277,8 @@ namespace GFGGame
|
|
|
|
|
|
private async void GameEnd()
|
|
private async void GameEnd()
|
|
{
|
|
{
|
|
- _ui.m_catcher.target.draggable = false;
|
|
|
|
|
|
+ //_ui.m_catcher.target.draggable = false;
|
|
|
|
+ _ui.m_catcher.target.visible = false;
|
|
HideGameView();
|
|
HideGameView();
|
|
|
|
|
|
bool win = true;
|
|
bool win = true;
|