Beispiel #1
0
        public void AddCursorPoint(Vector2 cursorPoint)
        {
            if (IsAddCursorPoint(cursorPoint) == false)
            {
                return;
            }

            _cursorPointsEntity.AddCursorPoint(cursorPoint);

            if (_cursorPointsEntity.GetCursorPointsCount() > 1)
            {
                _lineFactory.GenerateLineView();
            }

            if (IsCrossLine())
            {
                // 囲み判定用のコライダー生成
                _enclosureFactory.GenerateEnclosureCollider();

                ClearLine();
            }
        }