Commit 2beec70b authored by HaTrungVI's avatar HaTrungVI

no message

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