Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class DayLesson : MonoBehaviour {
- int i = 35;
- int min = 0;
- int max = 35;
- public GameObject[] les;
- //public GameObject Write;
- public void Onclick_Lesson_0()
- {
- les[0].gameObject.SetActive(true);
- if (max < i||i > min)
- {
- les[1].gameObject.SetActive(false);
- }
- //gameObject[i].SetActive(true);
- }
- public void Onclick_Lesson_1()
- {
- les[1].gameObject.SetActive(true);
- if (i > 1)
- {
- les[0].gameObject.SetActive(false);
- }
- //gameObject[i].SetActive(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement