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();
    }
Example #2
0
 public SkillGrid(GridPos gridPos, SkillGridType skillGridType)
 {
     GridPos       = gridPos;
     SkillGridType = skillGridType;
 }