Ejemplo n.º 1
0
    private void SetCommonActions(EditorEntity instance)
    {
        instance.entityPlacement.SetConstraints(tilemapEditor.lowerLeft, tilemapEditor.upperRight);
        instance.entityPlacement.OnStartedBeingHeld +=
            () => editModeControl.SwitchToAction(CommonEditMode.EditingActions.Entity_Placement);

        instance.entityPlacement.OnStartedBeingHeld +=
            () => CustomButton.DeselectCurrent();
    }