steampunk-quest/Assets/scripts/ChestsGame/mailController.cs

40 lines
832 B
C#
Raw Normal View History

2022-01-28 19:01:54 +03:00
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()
{
}
}