Advertisement
KorolevDmitry123

Untitled

Apr 9th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class CheckPoint8 : MonoBehaviour {
  5. public PointScore1 a;
  6. public PointScore2 b;
  7. public PointScore3 c;
  8. public PointScore4 d;
  9. public PointScore5 e;
  10. public PointScore6 f;
  11. public PointScore7 g;
  12. public PointScore8 h;
  13. public PointScore9 j;
  14. public PointScore10 k;
  15.  
  16. void Start ()
  17. {
  18.  
  19. }
  20.  
  21.  
  22. void Update ()
  23. {
  24.  
  25. }
  26.  
  27. void OnTriggerEnter(Collider Col)
  28. {
  29. if(Col.tag == "Manipulator")
  30. {
  31. Col.GetComponent<Player>().checkPos = transform.position;
  32. a.a = false;
  33. b.a = false;
  34. c.a = false;
  35. d.a = false;
  36. e.a = false;
  37. f.a = false;
  38. g.a = false;
  39. h.a = false;
  40. j.a = false;
  41. k.a = false;
  42. PointScore1.pointscore1 = 0.0f;
  43. PointScore2.pointscore2 = 0.0f;
  44. PointScore3.pointscore3 = 0.0f;
  45. PointScore4.pointscore4 = 0.0f;
  46. PointScore5.pointscore5 = 0.0f;
  47. PointScore6.pointscore6 = 0.0f;
  48. PointScore7.pointscore7 = 0.0f;
  49. PointScore8.pointscore8 = 0.0f;
  50. PointScore9.pointscore9 = 0.0f;
  51. PointScore10.pointscore10 = 0.0f;
  52. }
  53. }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement