Exemplo n.º 1
0
    public void Init(SkillConfig.SkillGrid skillGrid, float gridSizeFactor)
    {
        RectTransform.localScale       = Vector3.one * gridSizeFactor;
        RectTransform.anchoredPosition = new Vector2(skillGrid.GridPos.x, skillGrid.GridPos.z) * 20f;

        SkillGridType = skillGrid.SkillGridType;
        OnChangeSkillGridType();
    }
Exemplo n.º 2
0
 public SkillGrid(GridPos gridPos, SkillGridType skillGridType)
 {
     GridPos       = gridPos;
     SkillGridType = skillGridType;
 }