Esempio n. 1
0
        public void ThicknessSizeEvent(ThicknessSize thicknessSize)
        {
            if (thicknessSize == null)
            {
                return;
            }

            GameManager gameManager = GameObject.FindObjectOfType <GameManager>();

            if (gameManager.currentTool == null)
            {
                return;
            }

            if (!(gameManager.currentTool.feature == Tool.ToolFeature.Line))
            {
                return;
            }

            gameManager.currentThickness = thicknessSize;
            gameManager.ChangeThicknessSizeColor();
        }