Advertisement
Guest User

Untitled

a guest
Aug 7th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Toggler : MonoBehaviour {
  5. public GameObject workingDay1;
  6. public GameObject workingDay2;
  7. public GameObject workingDay3;
  8. public GameObject workingDay4;
  9. public GameObject educationalDay1;
  10. public GameObject educationalDay2;
  11. public GameObject educationalDay3;
  12. public GameObject educationalDay4;
  13. public bool _workingDay1;
  14. public bool _workingDay2;
  15. public bool _workingDay3;
  16. public bool _workingDay4;
  17. public bool _educationalDay1;
  18. public bool _educationalDay2;
  19. public bool _educationalDay3;
  20. public bool _educationalDay4;
  21. void Update()
  22. {
  23. workingDay1.GetComponent<Toggle>().IsOn = _workingDay1;
  24. }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement