Commit 2beec70b authored by HaTrungVI's avatar HaTrungVI

no message

parent 7ec78a31
...@@ -246,6 +246,8 @@ public class Controller : MonoBehaviour ...@@ -246,6 +246,8 @@ public class Controller : MonoBehaviour
} }
break; break;
case TouchPhase.Ended: case TouchPhase.Ended:
if (Interface.instance.timeTouch == 0f)
{
float currentTime = Time.time; float currentTime = Time.time;
if (currentTime - timeTouch < 0.15f) if (currentTime - timeTouch < 0.15f)
{ {
...@@ -293,6 +295,7 @@ public class Controller : MonoBehaviour ...@@ -293,6 +295,7 @@ public class Controller : MonoBehaviour
} }
Debug.Log("Touch Phase Ended."); Debug.Log("Touch Phase Ended.");
attacking = false; attacking = false;
}
break; break;
} }
Laser_Weapon_Add(); Laser_Weapon_Add();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment