コード例 #1
0
    public CGameViewObject RegisterIcon(CCell pos)
    {
        CGameViewObject box = Instantiate(boxPrefab);

        box.transform.localScale = Vector3.one;
        box.transform.position   = GetIconCenterByCell(pos);

        return(box);
    }
コード例 #2
0
    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);
        }
    }