public AnimalChecker(Box box) { this.box = box; stunt = StuntEnum.none; up = GetNeighbor(-Grid.GRID_X_COUNT); down = GetNeighbor(Grid.GRID_X_COUNT); left = GetNeighbor(-1); right = GetNeighbor(1); }
public void EliminateAll() { if (move.box.checker.Check(color)) { foreach (Animal animal in move.box.checker.GetEliminateList()) { animal.EliminateSelf(); } stuntState = move.box.checker.stunt; } }
void SetStund() { //x y 的列表中是不包含自身的,所以判断的数量条件要减1 if (x.Count >= 4 || y.Count >= 4) { stunt = StuntEnum.bird; } else if (x.Count >= 2 && y.Count >= 2) { stunt = StuntEnum.wrap; } else if (x.Count == 3) { stunt = StuntEnum.line; } else if (y.Count == 3) { stunt = StuntEnum.column; } //Debug.Log("x: " + x.Count + " y: " + y.Count + " " + stunt.ToString()); }