mirror of
https://github.com/evgen-app/steampunk-quest.git
synced 2025-02-08 10:20:33 +03:00
31 lines
716 B
C#
31 lines
716 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class mailController : MonoBehaviour
|
|
{
|
|
// Start is called before the first frame update
|
|
[SerializeField] GameObject filter;
|
|
[SerializeField] GameObject mapDialog;
|
|
[SerializeField] GameObject mapBtn;
|
|
public void onMailBtnClick()
|
|
{
|
|
gameObject.SetActive(true);
|
|
filter.SetActive(true);
|
|
}
|
|
public void onExitMailClick()
|
|
{
|
|
gameObject.SetActive(false);
|
|
filter.SetActive(false);
|
|
|
|
}
|
|
public void onOpenMapClick()
|
|
{
|
|
mapDialog.GetComponent<mapController>().changeMapStatus(0);
|
|
mapBtn.SetActive(true);
|
|
mapDialog.SetActive(true);
|
|
|
|
}
|
|
|
|
}
|