58 lines
1.3 KiB
C#
58 lines
1.3 KiB
C#
|
|
using System.Collections;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using UnityEngine;
|
|||
|
|
using UnityEngine.UI;
|
|||
|
|
|
|||
|
|
public class HelpTip : MonoBehaviour
|
|||
|
|
{
|
|||
|
|
public GameObject objImgHelp;
|
|||
|
|
|
|||
|
|
public Text txtHelp;
|
|||
|
|
|
|||
|
|
public Image imgHelp;
|
|||
|
|
|
|||
|
|
private void Start()
|
|||
|
|
{
|
|||
|
|
// Invoke("SetControl", 0.2f);
|
|||
|
|
|
|||
|
|
SetControl();
|
|||
|
|
|
|||
|
|
// StartCoroutine(ImageLoader<Image>.LoadImage(CommonData.UIImageFullPath + "Help.png", imgHelp));
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void SetControl()
|
|||
|
|
{
|
|||
|
|
BaseController.CanControl = false;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public void Close()
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// Update is called once per frame
|
|||
|
|
//void Update()
|
|||
|
|
//{
|
|||
|
|
// if (Input.GetKeyDown(KeyCode.F2))
|
|||
|
|
// {
|
|||
|
|
// objImgHelp.SetActive(!objImgHelp.activeSelf);
|
|||
|
|
|
|||
|
|
// // txtHelp.text = objImgHelp.activeSelf ? "<22>밴 F2 <20><> ESC <20>رմ<D8B1>ҳ | Press F2 or ESC to hide help" : "<22>밴F2<46><EFBFBD><F2BFAAB0><EFBFBD> | Press F2 for help";
|
|||
|
|
|
|||
|
|
// BaseController.CanControl = !objImgHelp.activeSelf;
|
|||
|
|
// }
|
|||
|
|
|
|||
|
|
// if (Input.GetKeyDown(KeyCode.Escape))
|
|||
|
|
// {
|
|||
|
|
// if (objImgHelp.activeSelf)
|
|||
|
|
// {
|
|||
|
|
// objImgHelp.SetActive(false);
|
|||
|
|
|
|||
|
|
// // txtHelp.text = "<22>밴F2<46><EFBFBD><F2BFAAB0><EFBFBD> | Press F2 for help";
|
|||
|
|
|
|||
|
|
// BaseController.CanControl = !objImgHelp.activeSelf;
|
|||
|
|
// }
|
|||
|
|
// }
|
|||
|
|
//}
|
|||
|
|
}
|