summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XOpenDungeonUI.cs
blob: 77daa54ed2a32a1bfa2e3d1f4f9d9ec76c3fd2a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using UnityEngine;
using System.Collections;
using XUtliPoolLib;

public class XOpenDungeonUI : MonoBehaviour {

    private IXPlayerAction _uiOperation;

    void OnTriggerEnter(Collider c)
    {
        if (c.gameObject.CompareTag("Player"))
        {
            if (_uiOperation == null || _uiOperation.Deprecated)
                _uiOperation = XInterfaceMgr.singleton.GetInterface<IXPlayerAction>(1);

            if (_uiOperation != null) _uiOperation.GotoBattle();
        }
    }
}