45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
// Felix-Bang:Tile
|
||
// へ /|
|
||
// /\7 ∠_/
|
||
// / │ / /
|
||
// │ Z _,< / /`ヽ
|
||
// │ ヽ / 〉
|
||
// Y ` / /
|
||
// イ● 、 ● ⊂⊃〈 /
|
||
// () へ | \〈
|
||
// >ー 、_ ィ │ //
|
||
// / へ / ノ<| \\
|
||
// ヽ_ノ (_/ │//
|
||
// 7 |/
|
||
// >―r ̄ ̄`ー―_
|
||
// Describe:背景网格(单个)
|
||
// Createtime:2018/9/19
|
||
|
||
|
||
using System.Collections;
|
||
using System.Collections.Generic;
|
||
using UnityEngine;
|
||
|
||
namespace FBApplication
|
||
{
|
||
public class FBGrid
|
||
{
|
||
public int Index_X;
|
||
public int Index_Y;
|
||
public bool CanHold; //是否可以放置塔
|
||
public Object Data; //保存的相关数据
|
||
|
||
public FBGrid(int x, int y)
|
||
{
|
||
Index_X = x;
|
||
Index_Y = y;
|
||
}
|
||
|
||
public override string ToString()
|
||
{
|
||
return string.Format("[X:{0},Y:{1},CanHold:{2}]", Index_X, Index_Y,CanHold);
|
||
}
|
||
}
|
||
}
|
||
|