Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class Toggler : MonoBehaviour {
- public GameObject workingDay1;
- public GameObject workingDay2;
- public GameObject workingDay3;
- public GameObject workingDay4;
- public GameObject educationalDay1;
- public GameObject educationalDay2;
- public GameObject educationalDay3;
- public GameObject educationalDay4;
- public bool _workingDay1;
- public bool _workingDay2;
- public bool _workingDay3;
- public bool _workingDay4;
- public bool _educationalDay1;
- public bool _educationalDay2;
- public bool _educationalDay3;
- public bool _educationalDay4;
- void Update()
- {
- workingDay1.GetComponent<Toggle>().IsOn = _workingDay1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement