Commit 2beec70b authored by HaTrungVI's avatar HaTrungVI

no message

parent 7ec78a31
...@@ -246,53 +246,56 @@ public class Controller : MonoBehaviour ...@@ -246,53 +246,56 @@ public class Controller : MonoBehaviour
} }
break; break;
case TouchPhase.Ended: case TouchPhase.Ended:
float currentTime = Time.time; if (Interface.instance.timeTouch == 0f)
if (currentTime - timeTouch < 0.15f)
{ {
Debug.Log("Negaxy: Touch!!!"); float currentTime = Time.time;
if (attacking) if (currentTime - timeTouch < 0.15f)
{ {
UseSkill(); Debug.Log("Negaxy: Touch!!!");
//if (Class_Interface.powerEnabled == true) if (attacking)
//{ {
// Power_Weapon(); UseSkill();
//} //if (Class_Interface.powerEnabled == true)
//if (Class_Interface.missleEnabled == true) //{
//{ // Power_Weapon();
// StartCoroutine(Missle_Weapon()); //}
//} //if (Class_Interface.missleEnabled == true)
//else //{
//if (Class_Interface.laserEnabled == true) // StartCoroutine(Missle_Weapon());
//{ //}
// StartCoroutine(Laser_Weapon()); //else
//} //if (Class_Interface.laserEnabled == true)
//else //{
//if (Class_Interface.pulseEnabled == true) // StartCoroutine(Laser_Weapon());
//{ //}
// StartCoroutine(Blackhole_Weapon()); //else
//} //if (Class_Interface.pulseEnabled == true)
//else //{
//if (Class_Interface.eraserEnabled == true) // StartCoroutine(Blackhole_Weapon());
//{ //}
// Eraser_Weapon(); //else
//} //if (Class_Interface.eraserEnabled == true)
//else //{
//if (Class_Interface.collapsarEnabled == true) // Eraser_Weapon();
//{ //}
// Collapsar_Weapon(); //else
//} //if (Class_Interface.collapsarEnabled == true)
//else //{
//if (Class_Interface.destroyerEnabled == true) // Collapsar_Weapon();
//{ //}
// StartCoroutine(Destroyer_Weapon()); //else
//} //if (Class_Interface.destroyerEnabled == true)
//else //{
//if (Class_Interface.defaultEnabled == true && !default_attacking) // StartCoroutine(Destroyer_Weapon());
// StartCoroutine(Default_Weapon()); //}
//else
//if (Class_Interface.defaultEnabled == true && !default_attacking)
// StartCoroutine(Default_Weapon());
}
} }
Debug.Log("Touch Phase Ended.");
attacking = false;
} }
Debug.Log("Touch Phase Ended.");
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