48 lines
881 B
C#
48 lines
881 B
C#
|
using System;
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class UnLockGrid : MonoBehaviour
|
||
|
{
|
||
|
[SerializeField] private int x;
|
||
|
[SerializeField] private int y;
|
||
|
public List<UnlockData> openData => openList;
|
||
|
[SerializeField] private List<UnlockData> openList;
|
||
|
public Vector3 MouseDev => mouseDev;
|
||
|
[SerializeField] public Vector3 mouseDev;
|
||
|
|
||
|
public bool UnLockOpen(Grid grid, int x,int y)
|
||
|
{
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
private void Awake()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
// Start is called before the first frame update
|
||
|
void Start()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
// Update is called once per frame
|
||
|
void Update()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
private void OnMouseDown()
|
||
|
{
|
||
|
GameManager.ins.seletUnlock = this;
|
||
|
}
|
||
|
}
|
||
|
[Serializable]
|
||
|
public class UnlockData
|
||
|
{
|
||
|
public int x;
|
||
|
public int y;
|
||
|
}
|