mirror of
https://github.com/evgen-app/steampunk-quest.git
synced 2025-02-07 09:50:32 +03:00
40 lines
832 B
C#
40 lines
832 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);
|
||
|
|
||
|
}
|
||
|
void Start()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
// Update is called once per frame
|
||
|
void Update()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
}
|