public CGameViewObject RegisterIcon(CCell pos) { CGameViewObject box = Instantiate(boxPrefab); box.transform.localScale = Vector3.one; box.transform.position = GetIconCenterByCell(pos); return(box); }
public void AnimatedBoxState(Vector2 position, BoxState newboxStt) { int x = (int)position.x; int y = (int)position.y; CGameViewObject curentBox = grid[x, y]; if (curentBox.currentBoxState != newboxStt) { curentBox.SetBoxState(newboxStt); } }