Guest User

Untitled

a guest
May 22nd, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Manda : MonoBehaviour
  5. {
  6. public KeyCode mandakey;
  7. public KeyCode smena;
  8. public GameObject orochimaru1;
  9. bool orochimaruskin = true;
  10. bool mandaskin = false;
  11. bool mandaonline = false;
  12. // Use this for initialization
  13. void Start () {
  14.  
  15. }
  16.  
  17. // Update is called once per frame
  18. void Update ()
  19. {
  20. if (Input.GetKeyDown(mandakey))
  21. if (mandaonline == false)
  22. {
  23. Vector3 orochimarupos = orochimaru1.transform.position;
  24. Instantiate(orochimaru1,transform.position, transform.rotation) as Transform;
  25.  
  26. mandaonline = true;
  27.  
  28. print("Polychaem koordinati mandaonline");
  29. }
  30. else if (mandaonline == true)
  31. {
  32. print("Manda uje prizvana");
  33. }
  34. if (Input.GetKeyDown(smena))
  35. if (orochimaruskin == true)
  36. {
  37. orochimaruskin = false;
  38. print("Vi smenili upravlenie na Manda");
  39. }
  40. else
  41. if (orochimaruskin == false)
  42. {
  43. orochimaruskin = true;
  44. print("Vi smenili upravlenie na Orochimaru");
  45. }
  46. }
  47. }
Add Comment
Please, Sign In to add comment