13 lines
382 B
C#
13 lines
382 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
// Вешается на кнопку "БОЙ" в нижней панели города (Nav_Battle) -- открывает карту мира.
|
|
[RequireComponent(typeof(Button))]
|
|
public class OpenBattleButton : MonoBehaviour
|
|
{
|
|
void Awake()
|
|
{
|
|
GetComponent<Button>().onClick.AddListener(SceneNavigator.OpenWorldMap);
|
|
}
|
|
}
|