153 lines
3.7 KiB
C#
153 lines
3.7 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class Stepeightpanl : MonoBehaviour
|
|
{
|
|
/// <summary>
|
|
/// 놓迦뺏女충
|
|
/// </summary>
|
|
public RectTransform stepeightpanl;
|
|
/// <summary>
|
|
/// 女충1
|
|
/// </summary>
|
|
public RectTransform stepeightpanl1;
|
|
/// <summary>
|
|
/// 릿齡긍뵀
|
|
/// </summary>
|
|
public InputField inputid8;
|
|
/// <summary>
|
|
/// 덤곗묏데객큐
|
|
/// </summary>
|
|
public Button waittobedonebutton8;
|
|
/// <summary>
|
|
/// 女충2
|
|
/// </summary>
|
|
public RectTransform stepeightpanl2;
|
|
/// <summary>
|
|
/// 渴흙묏데긍뵀
|
|
/// </summary>
|
|
public InputField inputfid8;
|
|
/// <summary>
|
|
/// 꿴璂묏데객큐
|
|
/// </summary>
|
|
public Button inquirebutton8;
|
|
/// <summary>
|
|
/// 女충3
|
|
/// </summary>
|
|
public RectTransform stepeightpanl3;
|
|
/// <summary>
|
|
/// 뭅朞멕좋朞嶝
|
|
/// </summary>
|
|
public Toggle serialtoggle8;
|
|
/// <summary>
|
|
/// 뭅朞暠튬
|
|
/// </summary>
|
|
public Image serialimage8;
|
|
/// <summary>
|
|
/// 북谿跨獨백도객큐
|
|
/// </summary>
|
|
public Button recyclebutton8;
|
|
/// <summary>
|
|
/// 푯澗객큐
|
|
/// </summary>
|
|
public Button signforbutton8;
|
|
/// <summary>
|
|
/// 푯澗객큐역밑
|
|
/// </summary>
|
|
private bool signforisp;
|
|
/// <summary>
|
|
/// 북谿푯澗냥묘暠튬
|
|
/// </summary>
|
|
public Image signforimage8;
|
|
/// <summary>
|
|
/// 女충4
|
|
/// </summary>
|
|
public RectTransform stepeightpanl4;
|
|
/// <summary>
|
|
/// 백도객큐
|
|
/// </summary>
|
|
public Button archivistbutton;
|
|
/// <summary>
|
|
/// 백도객큐
|
|
/// </summary>
|
|
private bool archivsisp=true;
|
|
public Text w;
|
|
void Start()
|
|
{
|
|
waittobedonebutton8.onClick.AddListener(() =>
|
|
{
|
|
stepeightpanl1.gameObject.SetActive(false);
|
|
stepeightpanl2.gameObject.SetActive(true);
|
|
});
|
|
inquirebutton8.onClick.AddListener(() =>
|
|
{
|
|
stepeightpanl2.gameObject.SetActive(false);
|
|
stepeightpanl3.gameObject.SetActive(true);
|
|
});
|
|
serialtoggle8.onValueChanged.AddListener(delegate
|
|
{
|
|
Getpicture(serialtoggle8);
|
|
});
|
|
recyclebutton8.onClick.AddListener(() =>
|
|
{
|
|
stepeightpanl3.gameObject.SetActive(false);
|
|
stepeightpanl4.gameObject.SetActive(true);
|
|
});
|
|
signforbutton8.onClick.AddListener(() =>
|
|
{
|
|
if (signforisp)
|
|
{
|
|
ScoreManager.Instance.AddScore(2);
|
|
signforisp = false;
|
|
}
|
|
signforimage8.gameObject.SetActive(true);
|
|
Invoke("Getpicture2", 1.5f);
|
|
});
|
|
archivistbutton.onClick.AddListener(() =>
|
|
{
|
|
if (archivsisp)
|
|
{
|
|
ScoreManager.Instance.AddScore(9);
|
|
Debug.LogError(ScoreManager.Instance.Score);
|
|
w.text = "롸鑒:" + ScoreManager.Instance.Score;
|
|
w.gameObject.SetActive(true);
|
|
archivsisp = false;
|
|
}
|
|
});
|
|
}
|
|
public void Getpicture2()
|
|
{
|
|
signforimage8.gameObject.SetActive(false);
|
|
}
|
|
/// <summary>
|
|
/// 鞫刻暠튬
|
|
/// </summary>
|
|
/// <param name="toggle"></param>
|
|
public void Getpicture(Toggle toggle)
|
|
{
|
|
if (toggle.isOn)
|
|
{
|
|
ScoreManager.Instance.AddScore(1.5f);
|
|
serialimage8.gameObject.SetActive(true);
|
|
}
|
|
else
|
|
{
|
|
ScoreManager.Instance.SubtractScore(1.5f);
|
|
serialimage8.gameObject.SetActive(false);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 놓迦뺏女충렘랬
|
|
/// </summary>
|
|
public void Getpage8()
|
|
{
|
|
stepeightpanl.gameObject.SetActive(true);
|
|
}
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|