Esempio n. 1
0
    private void SetupBuildingIcon()
    {
        List <Vector3Int> constructPositions = ConstructNodeManager.Centers;

        for (int i = 0; i < constructPositions.Count; i++)
        {
            Vector3Int serPos   = constructPositions[i].ToSerPosition();
            Vector3    position = ToLocalFrom(serPos);

            ConstructIcon icon = iconPooling.GetItem();
            icon.SetHoldingPositions(ConstructNodeManager, serPos);
            icon.transform.localPosition = position;

            Catcher.Add(icon);
            icon.gameObject.SetActive(true);
        }
    }