You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.7 KiB

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class DSTask : MonoBehaviour
{
public GameObject yw;
public GameObject ly;
public GameObject kt;
public GameObject zf_1;
public GameObject zf_2;
public GameObject ly_1;
public GameObject ly_2;
public GameObject kt_1;
public GameObject kt_2;
public GameObject zhufan;
public GameObject xiaozao;
public GameObject shuijiao;
public GameObject jt1;
public GameObject jt2;
public GameObject jt3;
public void ZFfinish()
{
print("结束煮饭");
yw.SetActive(false);
zf_1.GetComponent<Text>().text = "已完成";
zf_2.SetActive(true);
//GameManager.GetInstance().IsFinishXZ = true;
jt1.SetActive(true);
}
public void RSfinish() {
ly.SetActive(true);
print("热水已经放好");
ly_1.GetComponent<Text>().text = "已完成";
ly_2.SetActive(true);
//GameManager.GetInstance().IsFinishXZ = true;
jt2.SetActive(true);
}
public void KTfinish() {
kt.SetActive(true);
print("空调已经调好");
kt_1.GetComponent<Text>().text = "已完成";
kt_2.SetActive(true);
//GameManager.GetInstance().IsFinishKT = true;
jt3.SetActive(true);
}
private void Update()
{
if (GameManager.GetInstance().IsFinishZF) {
zhufan.SetActive(true);
}
if (GameManager.GetInstance().IsFinishXZ)
{
xiaozao.SetActive(true);
}
if (GameManager.GetInstance().IsFinishKT)
{
shuijiao.SetActive(true);
}
}
}