예제 #1
0
        void ToTile_Set()
        {
            var newTarget = TouchUtility.GetTile_ScreenPos(Cam, Input.mousePosition, exceptionList);

            newTarget = FindTopTile(newTarget);

            if (newTarget != toTile)
            {
                ToTile_Reset();
                toTile = newTarget;
                if (toTile != null && toTile != fromTile)
                {
                    ColoredObject.Start(toTile.gameObject, destinationGradient);
                }
            }

            GhostTile_Update();
        }