Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. void Mata_Titan(RaycastHit Tiro)
  2. {
  3. print("Oi");
  4. if (Tiro.collider.CompareTag("Titan"))
  5. {
  6. print("Oi2");
  7. if (Tiro.collider.transform.root.GetComponent<Titan_Enemy>()._Showing_Life_Bar == false)
  8. {
  9. Tiro.collider.transform.root.GetComponent<Titan_Enemy>().Show_HP_Bar();
  10. Tiro.collider.transform.root.GetComponent<Titan_Enemy>()._Recebi_Um_Tiro = true;
  11. Tiro.collider.transform.root.GetComponent<Titan_Enemy>()._Time_For_Alt_Value = Tiro.collider.transform.root.GetComponent<Titan_Enemy>()._Max_Timer;
  12. }
  13.  
  14. if (Tiro.collider.transform.root.GetComponent<Titan_Enemy>()._Showing_Life_Bar == true)
  15. {
  16. Tiro.collider.transform.root.GetComponent<Titan_Enemy>()._HP_Reduce();
  17. Tiro.collider.transform.root.GetComponent<Titan_Enemy>()._Recebi_Um_Tiro = true;
  18. Tiro.collider.transform.root.GetComponent<Titan_Enemy>()._Time_For_Alt_Value = Tiro.collider.transform.root.GetComponent<Titan_Enemy>()._Max_Timer;
  19. }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement