예제 #1
0
 public virtual void Start()
 {
     shapePickerController = FindObjectOfType<ShapePickerController>();
     if (gameMode == GameMode.FREE)
     {
         StartCoroutine(StartLevel());
     }
 }
예제 #2
0
    private void Start()
    {
        ShapePickerController shapePicker = FindObjectOfType <ShapePickerController>();

        locator = FindObjectOfType <FigureLocator>();
        shapePicker.onPickObject += (newFigure) => { figure = newFigure; };
        shapePicker.onDropObject += () => {
            if (locator.isFocusedonBoard)
            {
                figure.ForceRotate(targetAngular, currentVelocity, autoRotateSmoothing);
            }
            figure = null;
        };
    }
예제 #3
0
    private void Start()
    {
        ShapePickerController shapePicker = FindObjectOfType <ShapePickerController>();

        shapePicker.onPickObject += (newFigure) => { figure = newFigure; };
        shapePicker.onDropObject += () => {
            if (needSmoothPos && figure)
            {
                if (figure.transform.position != targetPos)
                {
                    figure.ForceLocate(targetPos, currentVelocity, pickupSmoothing);
                }
            }
            figure = null;
        };
    }